PHPC4 | PHP Dependency Management with Composer
- This one day training course enables you to get all the essential concepts to get started and master the dependency management of your PHP projects with the Composer tool. Thanks to Composer, define and download the third party dependencies (PHP applications, code libraries) that your PHP projects require, then learn how to create and manage your own Composer reusable packages.
-
Prerequisites
Mastering PHP -
Goals
Learn how to easily and effectively manage the dependencies of your PHP project with Composer. At the end of this training course, you will master the configuration, usage and fundamental commands of the Composer tool.
Full program
Introduction to Composer
- What is Composer?
- Composer installation
- What is a dependency? (name, version)
- Discovering the Command line interface
Basic Usage of Composer
- Understanding the
composer.json
file - Using the Composer
init
,config
andcreate-project
commands - Validating the Composer configuration
- Searching for third party packages
- Installing a third party package
- Autoloading third party packages classes
- Updating the project third party dependencies
Dealing with Composer Packages Versions
- Understanding the versions constraints (exact, range, wildcard, tilde, branch, tag...)
- Dealing with versions stability states (stable, dev, beta...)
- Resolving versions conflicts
Project Life Cycle
- Understanding the difference between
composer.json
andcomposer.lock
files - Adding classic and development packages
- Installing and updating dependencies
- Discovering useful command line options
Composer Advanced Usage
- Configuring branch aliases
- Substituting a package by a fork
- Dealing with VCSs and ZIP archives
- Configuring autoloading mechanisms
- Installing CLI packages
- Running hook scripts on install or update
Managing Public and Private Packages
- Publishing public packages to Packagist.org
- Handling tags and branches
- Publishing private packages with Satis
Time program
Day 1
Appreciation of the training
Global average :
- Educational rating : N.C
- Content rating : N.C
- Pace rating : N.C
We also recommend the following courses
-
Duration
1 day(s)
-
Level
Beginner
-
Available languages
French, English -
Available countries
France, Worldwide
From €690.00
No session scheduled
No session is scheduled for this course. However we organize tailored training courses: contact us for more informations!