|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2020-10-23 (0 years ago) ||Not yet rated by the users||Total: 127 ||All time: 9,198 This week: 221|
This package implements a client to call an API that provides a CRUD service.
It provides classes that compose and send HTTP requests to an API that performs the regular CRUD operations. Currently it implements calls to the server API that can:
- Retrieve all recods
- Retrieve one record
- Get all the fields of the records
- Delete one record
- Create one record
- Update one record
- Get new records since given date
- Get the record count
- Get the last records that were added
|CRUD interfaces are used very frequently by many applications to manipulate data stored in databases.
These CRUD interfaces may be used by Web page based applications or mobile applications calling an API.
This package simplifies the implementation of CRUD interfaces to be accessible via Web APIs, by providing basic functionality that most CRUD implementations need to provide.
This way you can implement Web page based or mobile applications in less time than if you had to implement a CRUD interface in more traditional ways.
CRUD service client
Mezon provides simple client for CRUD service.
Just print in console
composer require mezon/crud-service-client
And that's all )
This class provides CRUD-like all-purpose methods:
update(int $id, array $data, int $crossDomain = 0)
delete(int $id, int $crossDomain = 0): string
recordsCountByField(string $field, $filter = false): array
deleteFiltered($crossDomain = 0, $filter = false)
getRecordsBy($filter, $crossDomain = 0)
getById($id, $crossDomain = 0)
getByIdsArray($ids, $crossDomain = 0)
getList(int $from = 0, int $limit = 1000000000, $crossDomain = 0, $filter = false, $order = false): array
// and some utilities
static function instance(string $service, string $token): \Mezon\CrudService\CrudServiceClient
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.