A practical introduction to Composer, the Dependency Manager for PHP. We'll look at PHP source code dependency management, compare Composer to PEAR, and show how Composer helps you obtain the components your applications depend upon, install them into your project, and control their update to newer versions. We'll demystify the keys in the composer.json file, and get you confidently using Composer, with practical examples all the way. You will understand:
what PHP source code dependency management looks like, what problem Composer solves,
how to install Composer (even on an IBM i system),
how to use Composer to install, update, and lock code dependencies to appropriate versions,
the difference between composer.json and composer.lock,
what Semantic Versioning means, and what those version numbers communicate to you as developer,
Packagist, the public clearing house for Composer-managed packages,
setting up and using private repositories,
considerations when using Composer in development vs. production environments,
and important do's and don'ts when using Composer.