|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2020-10-23 (1 month ago) ||Not yet rated by the users||Total: 45 This week: 3||All time: 9,935 This week: 69|
This package implements a client 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 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.