You can automatically load all classes using psr-0 if the classes follow a non-naming convention of type WPAR.
To control the loading of the provider through the composer, you can directly define the package in composer.json .
{ "repositories": [ { "type": "package", "package": { "name": "payone/php-sdk", "version": "1.0.0", "dist": { "url": "http://github.com/PAYONE/PHP-SDK/archive/master.zip", "type": "zip" }, "autoload": { "psr-0": { "Payone_": "php/" } } } } ], "require": { "payone/php-sdk": "1.0.*" } }
Note. This type of repository has several limitations and should be avoided when possible:
- Composer will not update the package unless you change the
version field.
source share