yourivw / LEClient

An easy-to-use PHP ACME v2 client library, designed to be used with LetsEncrypt.
MIT License
204 stars 98 forks source link

PSR-4 autoloading support. #48

Closed sikhlana closed 6 years ago

sikhlana commented 6 years ago

To improve the usage of this wonderful library, I've added autoloading support of the classes compliant with the PSR-4 standard. This is needed because currently it's a hassle to include the classes by adding:

require_once base_path().'/vendor/yourivw/leclient/LEClient.php';

in each and every file that uses the client library. Whereas, composer can handle it just by installing the package, call the class and voila!

Major changes in this PR includes:

yourivw commented 6 years ago

Added to master branch and version 1.1.4. Removed PHP minimum version 7.1. Was already changed in previous PR but never updated in readme.

sikhlana commented 6 years ago

Okay, cool. Though I do believe you should remove support for 5.2 as it's EOL and support for security updates for 5.6 is ending soon too.