jumpifbelow / php-resource-wrapper
An API to define how a resource wrapper should work
Requires
- php: >=8.4
Requires (Dev)
- phpunit/phpunit: ^12.2.7
README
Bunch of classes defining an API for classes that embed resources.
What is the purpose?
This project itself is not useful if you are not implementing your own logic to it. If you are using it raw, you can see that the classes are all abstracts. However, you can use it by adding a Composer dependency with the command
composer require jumpifbelow/php-resource-wrapper
If you want an implementation of it, I've made one that implements several classes:
composer require jumpifbelow/php-resource-class
This project is accessible with this link.
Actually, those two projects are decoupled to allow major update on one part, without having to implement all new features immediately.
Why those two projects are split?
In the early phase of development, the projects were tightly coupled in one repository. After several issues, I've come to the conclusion that it was better to split them as upgrading the core was requiring to upgrade the whole implementation all the time, without being able to tackle down things one by one. For example, if one day I create a brand-new version of the API, the dependency will ensure that the implementation works, without having to update all the code. Moreover, it allows anyone to use it for their own purpose and maybe enhance what I've done with this project.