Working with dependencies in PHP

Composer

Creating a composer.lock file

  1. Initialize the project:

    composer init
  2. Install dependencies:

    composer install

    or create a lock-file directly:

    composer update
Was this page helpful?