You are reading the documentation for the 1.x version. Switch to the current version 2.x.

Last updated: Fri, 29 May 2020 14:19

Packages are available to simplify the integration of some functionality in project without fastidious configuration.

They are also the specificity to be able to used instead of middleware with implementation of PSR-15.

Installation of a package

If the package respect our recommandations, the installation is automatic ; but you can also declare package manualy.

Manual installation of a package

  1. Use composer to install package:

    composer require berlioz/my-package
  2. If you have a packages.json file in your configuration directory, go to 4. Else, create a file named packages.json in your configuration directory and add the default content:

        "packages": []
  3. Add package to the packages.json file of your project, looks like:

        "packages": [
  4. Finished!