Download the PHP package cekurte/resource-manager without Composer
On this page you can find all versions of the php package cekurte/resource-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cekurte/resource-manager
More information about cekurte/resource-manager
Files in cekurte/resource-manager
Informations about the package resource-manager
ResourceManager
- A Resource Manager to PHP (with all methods covered by php unit tests), with this library you can perform queries and manage resources using a unique interface. Now, you can increase the power of your resources, contribute with this project!.
If you liked of this library, give me a star =).
Installation
- The package is available on Packagist.
- The source files is PSR-2 compatible.
- Autoloading is PSR-4 compatible.
- RequestParser is PSR-7 compatible.
Documentation
Currently is available one ResourceManager implementation that can be used with the Doctrine ORM.
So, to use this library you must create your entity class and implement the ResourceInterface:
After that, you must retrieve an instance of ResourceManagerInterface:
Getting resources
To retrieve the resources you must call the method findResources
passing as argument an implementation of ExprQueue. This method will return an array of resources.
Getting one resource
To retrieve one resource you must call the method findResource
passing as argument an implementation of ExprQueue. This method will throw an exception if the resource can not be found.
Creating a resource
To create one resource you must call the method writeResource
passing as argument an implementation of ResourceInterface.
Updating a resource
To update one resource you must call the method updateResource
passing as argument an implementation of ResourceInterface.
Removing a resource
To remove one resource you must call the method deleteResource
passing as argument an implementation of ResourceInterface.
If you liked of this library, give me a star =).
Contributing
- Give me a star =)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Make your changes
- Run the tests, adding new ones for your own code if necessary (
vendor/bin/phpunit
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request