1. Let Composer
Slides' Link: http://j.mp/composersyl
Work mostly with PHP
Live in Kalighat, Sylhet, Bangladesh.
3. Work for Vegan Cuts
4. Working on a SAAS for Vegan Cuts too
5. Open Source ( )http://GitHub.com/usmanhalalit
6. What is Composer?
Composer is a dependency manager for PHP.
You use many PHP libraries in your project, right?
These are your project's dependencies.
Bundler is for ruby, npm is for node.js, Composer is for PHP.
7. Didn't understand?
No problem, all do have problems understanding for the ﬁrst
time, including me.
8. How would I explain Composer
to my wife?
You're going to cook delicious Biryani.
So you need rice, spices, onions, ...?
These are dependencies of Biryani.
You want me to buy and manage these dependencies for
So now you can just call these dependencies when needed.
Congrats! I am your Composer.
9. Theory behind package
Lets not always reinvent the wheel.
I depend on you, someone else depends on me and the
nesting goes further.
We can use bits and pieces.
10. Enough with theories.
11. Installation (requires Git mostly)
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
Download and run and set up your PATH so that
you can just call composer from any directory in your command line.
The store for Biryani materials :D
Search for packages/libraries.
Select the version you want.
13. Install a package (go to your project root)
composer require monolog/monolog
Basic composer.json ﬁle
Update or install dependencies
14. The vendor directory
All library ﬁles are loaded*, they can be used now.
Performance issues? Nope.
*Files are lazy loaded.
16. You can use autoload for you
18. Your questions please!
Slides Link: http://j.mp/composersyl