Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (15) | Download .zip | Reputation | Support forum | Blog (1) | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 135 | All time: 9,272 This week: 571 |
Version | License | PHP version | Categories | |||
mezon-crud-service-c 1.0.0 | MIT/X Consortium ... | 5 | PHP 5, Web services, Design Patterns |
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:
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
Files |
File | Role | Description | ||
---|---|---|---|---|
Tests (3 files, 1 directory) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
CrudServiceClient.php | Class | Class source | ||
CrudServiceClientInterface.php | Class | Class source | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | Tests |
File | Role | Description | ||
---|---|---|---|---|
Conf (5 files) | ||||
CrudServiceClientTests.php | Class | Class source | ||
CrudServiceClientUnitTest.php | Class | Class source | ||
CrudServiceClientUnitTests.php | Class | Class source |
Files | / | Tests | / | Conf |
File | Role | Description |
---|---|---|
Create.json | Data | Auxiliary data |
GetByIdsArray.json | Data | Auxiliary data |
GetFields.json | Data | Auxiliary data |
GetList.json | Data | Auxiliary data |
RecordsCountByField.json | Data | Auxiliary data |
mezon-crud-service-c-2020-10-23.zip 11KB | |
mezon-crud-service-c-2020-10-23.tar.gz 7KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.