Abstract: Composer is a tool for managing dependencies in PHP projects. This talk will introduce Composer and its associated package repository Packagist. The key features and benefits of using Composer will be explored and through practical demonstrations you will gain a working knowledge of using Composer for dependency management.
Report
Share
Report
Share
1 of 69
More Related Content
Composer
1. Tom Corrigan Melbourne PHP Users Group
rostercloud.com October 2012
@t_corrigan
2. What is Composer?
“Composer is a tool for dependency management. It allows you to
declare the dependent libraries your project needs and it will install
them in your project for you.”
[http://getcomposer.org/doc/00-intro.md]
14. Statistics
• Over 4000 packages listed on packagist.org
[https://packagist.org/statistics]
15. Statistics
• Over 4000 packages listed on packagist.org
• More than 4,500,000 package installations over the last 6 months
[https://packagist.org/statistics]
51. Composer: Killer Features
• composer.lock
• Satis - Your private repository
• composer installers
• Get started with a new framework project directly from composer
57. Satis
• Your very own packagist for your proprietary code
58. Satis
• Your very own packagist for your proprietary code
• Eases deployment
59. Satis
• Your very own packagist for your proprietary code
• Eases deployment
• Composer will connect to it securely
60. Satis
• Your very own packagist for your proprietary code
• Eases deployment
• Composer will connect to it securely
• HTTPS -Public key
61. Satis
• Your very own packagist for your proprietary code
• Eases deployment
• Composer will connect to it securely
• HTTPS -Public key
• SSH
62. Satis
• Your very own packagist for your proprietary code
• Eases deployment
• Composer will connect to it securely
• HTTPS -Public key
• SSH
• See https://github.com/composer/satis
Abstract: Composer is a tool for managing dependencies in PHP projects. This talk will introduce Composer and its associated package repository Packagist. The key features and benefits of using Composer will be explored and through practical demonstrations you will gain a working knowledge of using Composer for dependency management.\n
\n
Similar to Bundler for Ruby or npm for node. Per project\n
Similar to Bundler for Ruby or npm for node. Per project\n
Similar to Bundler for Ruby or npm for node. Per project\n
plus many more\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Global is better, don’t have to run self-update in each project\n
Global is better, don’t have to run self-update in each project\n
Global is better, don’t have to run self-update in each project\n
Global is better, don’t have to run self-update in each project\n
Define, install, autoload(optional)\nexamine each step in detail\n
Define, install, autoload(optional)\nexamine each step in detail\n
Define, install, autoload(optional)\nexamine each step in detail\n
2 parts - package name & package version\npackage name has two parts, vendor name & project nameFirst example, Tag name in git\n
2 parts - package name & package version\npackage name has two parts, vendor name & project nameFirst example, Tag name in git\n
\n
\n
DIR structure, composer.lock, \nAutoloader is designed for PSR-0 only, there are workarounds for other approaches. PHP-FIG\n