How To Create A New Composer PHP Package

  1. git init demo-composer-package
  2. cd demo-composer-package
  3. composer init
  4. composer install
  5. composer validate
  6. Follow the guide for your php version
Use this autoload functionality in your composer.json
"autoload": {
    "classmap": [

It makes your /src classes available in your tests directory so you don’t have to require them.

Comments are closed.