7 Commits

Author SHA1 Message Date
Gregory Oschwald 4bcaa933a0 Run latest version of php-cs-fixer 2024-06-17 07:27:09 -07:00
William Storey d96c997aeb Fix lints 2023-09-25 08:26:14 -07:00
Gregory Oschwald 9319f74d97 Enable new php-cs-fixer rules 2021-01-19 08:26:55 -08:00
Gregory Oschwald 9b13401eb6 Run php-cs-fixer migration aids 2020-06-24 13:38:33 -07:00
Edward HeXuefei e3d2c8b765 check for existency before loading any classes 2018-10-22 15:46:44 -04:00
Andy Jack fb50b26076 php-cs-fixer and phpcs tests run on latest php (7.2)
- commit result of `php-cs-fixer fix`
2018-09-19 16:37:11 -04:00
Michael Orlitzky 8fec21186b autoload.php: new PSR-4 autoloader for the MaxMind\Db namespace.
Since we follow PSR-4, it is easy to deduce the PHP file that defines
a class from that class's name. If used to install the library,
composer will produce an "autoload.php" file for you that does just
that. However, when composer is not used, the end user is left with no
way to load the class files that the library requires.

This commit adds a PSR-4 autoload.php file that will work without
composer. To use it, simply require("/path/to/autoload.php") in your
project. This has several benefits:

  1. The release tarball of the library is usable out-of-the-box,
     which means that end-users can verify its hash to ensure that
     the code they're running came from where they think it did.

  2. The test suite doesn't require internet access to run.

  3. As a result of the first two items, the library can be installed
     using other (system-level, distribution) package managers.

Closes: https://github.com/maxmind/MaxMind-DB-Reader-php/issues/56
2017-11-09 15:56:32 -05:00