Learning Composer, the PHP Dependency Manager

Learning Composer, the PHP Dependency Manager

1hBeginner2018-01-08

Authors

Morten Rand-Hendriksen

Morten Rand-Hendriksen

Senior Staff Instructor, Speaker, Web Designer, and Software Developer

Course details

Learn how to work with the critical PHP dependency manager, Composer. With Composer, you can leverage third-party script libraries called packages, and reduce development time on your projects. This course shows how to install Composer on Mac and Windows, locate suitable Composer packages in the Packagist repository, and use those packages in your PHP projects. In chapter three, instructor Morten Rand-Hendriksen shows you how the Composer workflow looks in a production environment, and he gives you security tips on finding trustworthy packages.

Learning objectives
Running PHP
Installing Composer
Finding packages
Using packages in your code
Using Composer with version control
Updating packages

Skills covered

ComposerPHPLearningProgramming LanguagesOpen SourceSoftware Development

Concepts

Introduction

  • Welcome
  • Exercise files

Introduction to Composer

  • What is Composer
  • Mac - Run PHP
  • Mac - Install Composer
  • Windows - Run PHP
  • Windows - Install Composer

Using Composer

  • Get ready to use Composer
  • Add Composer to a project
  • Find packages for Composer
  • Add a Composer package
  • Use packages in a project
  • Version management
  • The purpose of composer.lock
  • Update Composer packages
  • Useful Composer commands

Composer in Production

  • Use Composer with version control
  • Set up a project already using Composer
  • What packages should you trust

Conclusion

  • Thank you
40,000 Toman