example of composer to autoload or require dependencies
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
.gitignore
README.md
composer.json
composer.lock
composer.png

README.md

composer-example

Composer

example of requiring dependencies and autoloading with composer

dependencies are defined in composer.json

there is a dummy code at folder src/

composer.lock holds the versions that were downloaded along with other metadata

public/index.php requires composer autoload and instantiates a dummy class to demonstrate autoloading

learn more in: https://getcomposer.org/doc/00-intro.md

download composer: https://getcomposer.org/download/