Install and Use Composer | PHP Dependency Manager

preview_player
Показать описание
Composer is a Package Dependency Manager for PHP. It is like npm for NodeJS. If you work with Laravel and other PHP frameworks you need Composer in your PC. After you install Composer, you can use Composer from your terminal to manage dependencies for your PHP based projects. It's a must have even if you are a frontend developer.

To install Composer, go to Download page. You can use command line or installer to install Composer. For Windows, it's straight forward to install via installer. Download Composer setup, run setup and install.

To verify installation, open terminal, type composer and hit enter.

If composer greeting message appears, it means Composer has been installed in your PC. To install a package, Go to 'Browse packages' from Composer website. Search desired package. I will install Twitter Bootstrap.

Use install command in terminal provided for composer from docs. This will create vendor folder in directory where terminal is being used. Vendor folder contains installed packages. It will also create a composer json file and composer lock file to manage packages.

This is how you install and use 'composer php package manager'.

Thank You!
Channel Support
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT

#composer #tutorials #webdevelopment #php #webstylepress
Рекомендации по теме
Комментарии
Автор

thanks you. you teaching was awesome. I learnt a lot.

frankcy
Автор

which file directory does all the downloaded packages store at?

kso
Автор

I just installed the composer and whenever I try to use an autoload, I see notification that it is unable to connect to the schema. Don’t know how to go about it as I am new to the php language

kittoeebenezer