With Composer

[Solved] With Composer | Php - Code Explorer | yomemimo.com
Question : how to use composer

Answered by : ajah-uchenna

/*	1. Download windows composer from http://getcomposer.org/Composer-Setup.exe	* Run the installation.	* Check if the installation was successful by opening command prompt. * Type `composer` and execute it	2. Now, create the `composer.json` file for your project and list all dependencies	3. Move to the directory where you have created `composer.json` with the command prompt	* CD C:\path\to\project 4. Then run the following command:	- composer install * [without the hyphen] 5. A `vendor` directory and `autoload.php` file will be created 6. Require the file `autoload.php` file into your project
*/
require_once __DIR__ . '/vendor/autoload.php';

Source : https://stackoverflow.com/questions/20115757/how-to-install-dependencies-or-use-composer-at-all-in-windows | Last Update : Mon, 12 Sep 22

Answers related to with composer

Code Explorer Popular Question For Php