Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2020-10-23 (1 month ago) | | Not yet rated by the users | | Total: 51 This week: 2 | | All time: 9,904 This week: 90 |
|
Description | | Author |
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 Innovation Award
November 2020
Nominee
Vote |
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.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 4x |
|
Details
CRUD service client
Intro
Mezon provides simple client for CRUD service.
Installation
Just print in console
composer require mezon/crud-service-client
And that's all )
Reference
This class provides CRUD-like all-purpose methods:
create($data)
update(int $id, array $data, int $crossDomain = 0)
newRecordsSince($date)
recordsCount()
lastRecords($count, $filter)
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
getFields(): array
|
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.