This is a custom implementation
of a PSR-4 autoloader that can autoload any namespaces specified in
conductor.json
. The format follows the same conventions as Composer does.
- PHP 5.3+ (but please use something more recent)
Run php app.php
in your console. You should see a pretzel
emoji printed out. That's all the application does.
To see the actual implementation of the autoloader, look
at autoloader.php
. Try playing around with different
namespaces!
If you'd like to see more repositories and tutorials like this, consider following me on Twitter or subscribing to my newsletter.