pretzelhands / psr-4

A custom implementation of a PSR-4 autoloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ₯¨ pretzelhands/psr-4

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.

πŸ“¦ Requirements

  • PHP 5.3+ (but please use something more recent)

πŸ‘¨β€πŸ’» Getting started

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!

πŸ₯¨ Learn more

If you'd like to see more repositories and tutorials like this, consider following me on Twitter or subscribing to my newsletter.

About

A custom implementation of a PSR-4 autoloader

License:MIT License


Languages

Language:PHP 100.0%