Download the PHP package sinsquare/composer-overload without Composer
On this page you can find all versions of the php package sinsquare/composer-overload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sinsquare/composer-overload
More information about sinsquare/composer-overload
Files in sinsquare/composer-overload
Download sinsquare/composer-overload
More information about sinsquare/composer-overload
Files in sinsquare/composer-overload
Vendor sinsquare
Package composer-overload
Short Description A simple tool to overload classes using composer
License MIT
Package composer-overload
Short Description A simple tool to overload classes using composer
License MIT
Please rate this library. Is it a good library?
Informations about the package composer-overload
A simple tool that is used to "overload" classes.
A simple example:
Lets say you have the following code
In this case composer will search the file, and load(include) it. But there might be a case when you want to load a dummy class instead of the original class, so your tests run for example.
To do it you have to use the ComposerOverload autoloader. Replace the original autoloader.
Then you can add the classes you want to overload
To run the tests you have to run the two tests separately
- vendor/bin/phpunit tests/OriginalTest.php
- vendor/bin/phpunit tests/OverloadTest.php
All versions of composer-overload with dependencies
PHP Build Version
Package Version
The package sinsquare/composer-overload contains the following files
Loading the files please wait ...