conectra / active-rest
This is a library to make CRUD's with your REST API. With this package, and some framework like Slim. You can abstract operations: POST,PUT,PATCH,DELETE,FIND,FINDONE at your Routes.
Installs: 1 335
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:lib
pkg:composer/conectra/active-rest
Requires
- solis/phpbreaker: ^1.0
Requires (Dev)
- phpunit/phpunit: ^6.3
- squizlabs/php_codesniffer: ^3.0
README
This is a library to make CRUD's with your REST API. With this package, and some framework like Slim. You can abstract operations: POST,PUT,PATCH,DELETE,FIND,FINDONE at your Routes.
ORM OPERATIONS
- Find: Implement the
selectoperation; - FindOne: Implement the
searchoperation; - Post: Implement the
createoperation; - Patch: Implement the
update by replaceoperation; - Put: Implement the
update by incrementoperation; - Replicate: Implement the
replicateoperation.
The behavior is clone and update incremental keys; - Del: Implement the
deleteoperation; - Disable: Implement the
disableoperation.; The behavior is disable the register by status change; - Last: Implement the
lastoperation; The behavior is find the last register at repository.;