Skip to content

PHP Loader. Strategies for PHP classes autoloading.

License

Notifications You must be signed in to change notification settings

ojullien/Loader

Repository files navigation

Oseille-Loader

PHP Loader.

  • It provides different strategies for autoloading PHP classes
    • Classmap
    • ...

Note: I use this package for my own projects, it contains only the features I need.

1. Installation and Autoloading

This package requires PHP 5.6. For specifics, please examine the package composer.json file.

You may check if your PHP and extension versions match the platform requirements using composer diagnose and composer check-platform-reqs. (This requires Composer to be available as composer.)

This package is installable and PSR-4 autoloadable via Composer as oseille/loader. For no dev, use composer install --no-dev and for dev, use composer install.

Alternatively, download a release, or clone this repository, then map the Oseille\Loader\ namespace to the package src/ directory.

2. Documentation

I wrote and I use this package for my own projects. And, unfortunately, I do not provide exhaustive documentation. Please read the code and the comments ;)

You can generate documentation using phpdocumentor. It should be installed with Composer.

3. Test

To run the unit tests at the command line, issue composer install and then ./vendor/bin/phpunit at the package root. (This requires Composer to be available as composer.)

4. Contributing

Thanks you for taking the time to contribute. Please fork the repository and make changes as you'd like.

As I use this package for my own projects, it contains only the features I need. But If you have any ideas, just open an issue and tell me what you think. Pull requests are also warmly welcome.

If you encounter any bugs, please open an issue.

Be sure to include a title and clear description,as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.

5. License

This project is open-source and is licensed under the MIT License.