hanioldy / Grace

Multi Language App Builder and API Generator For Laravel Framework
MIT License
0 stars 0 forks source link

Root package 'hani221b/grace' cannot require itself in its composer.json #14

Open moHaHa opened 1 year ago

moHaHa commented 1 year ago

I run this command bash composer require hani221b/grace then I got this error

Root package 'hani221b/grace' cannot require itself in its composer.json

I'm not familiar with composer, Laravel, or even PHP, so IDK if this error or not

versions Composer: version 2.5.1 PHP: version 8.2.0

hanioldy commented 1 year ago

I guess you are trying to run the package in a "non-laravel" environment. You need to go through these steps to have the package working successfully.

1- Install a web server on your machine I would highly recommend using XAMMP as it includes PHP, MySql, Apache, and all other extensions that are required to run Laravel. You can install it from the official website. https://www.apachefriends.org/download.html

after the download is finished, open the XAMMP admin panel then run apache and mysql.

2- Install composer. Composer is the package manager for Laravel (like npm for Vue.js). https://getcomposer.org/

3- Install Bash CLI. Bash is a command line interface that is required to run composer commands effectively https://git-scm.com/downloads

4- Install a fresh Laravel project. Open Bash terminal and run the following command: composer create-project laravel/laravel example-app

Now you have Laravel installed on your machine and can use Grace easily through it.