The library
directory contains a custom package.
The composer.json
defines the name of the package,
the version number, and how to autoload the classes from the src/
directory.
The application/
directory contains a sample
application that uses the class from the library/
directory. There is a composer.json
that loads
the library locally and then creates an instance
of the class for use.
From this directory, run:
composer install
php main.php
To learn more about Composer basics, check out my tutorial PHP Composer Basics
John Leon [email protected]