Get a practical deep-dive into Composer, the dependency manager for PHP. We'll compare Composer to "global" managers like PEAR, apt, and yum; 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 explain autoloading, demystify keys in the composer.json file, and get you confidently using Composer, with practical examples all the way. When you leave this tutorial, you'll understand:
- What PHP source code dependency management looks like, and what problem Composer solves
- How to install Composer (friendly to all developers, including IBM i developers)
- How to use Composer to install, update, and lock code dependencies to appropriate versions
- Autoloading in general, Composer's autoloader in particular
- 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
- Considerations when using Composer in development vs. production environments
- Important do's and don'ts when using Composer
- Intro to setting up and using a private repository

Comments

Comments are closed.

Excellent introduction to the foundations of composer. Clark Everetts tutorial was interactive and easy to follow.

Aaron Todd at 05:50 on 30 Oct 2017

Perfect talk on the basics of Composer and included some more in-depth tips/best practices on semantic versioning and how it is very useful.