Mezon PHP CRUD API Service Client: Client to call an API that provides a CRUD service

Recommend this page to a friend!
  Info   View files Documentation   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-10-23 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 45 This week: 3All time: 9,935 This week: 69Up
Version License PHP version Categories
mezon-crud-service-c 1.0MIT/X Consortium ...5PHP 5, Web services, Design Patterns
Description Author

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

Picture of Alexey Dodonov
  Performance   Level  
Name: Alexey Dodonov <contact>
Classes: 32 packages by
Country: Russian Federation Russian Federation
Age: ???
All time rank: 263775 in Russian Federation Russian Federation
Week rank: 1 Up
Innovation award
Innovation award
Nominee: 3x

 

Details

CRUD service client Build Status codecov

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
  Files folder image Files  
File Role Description
Files folder imageTests (3 files, 1 directory)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Plain text file CrudServiceClient.php Class Class source
Plain text file CrudServiceClientInterface.php Class Class source
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  Tests  
File Role Description
Files folder imageConf (5 files)
  Plain text file CrudServiceClientTests.php Class Class source
  Plain text file CrudServiceClientUnitTest.php Class Class source
  Plain text file CrudServiceClientUnitTests.php Class Class source

  Files folder image Files  /  Tests  /  Conf  
File Role Description
  Accessible without login Plain text file Create.json Data Auxiliary data
  Accessible without login Plain text file GetByIdsArray.json Data Auxiliary data
  Accessible without login Plain text file GetFields.json Data Auxiliary data
  Accessible without login Plain text file GetList.json Data Auxiliary data
  Accessible without login Plain text file RecordsCountByField.json Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:45
This week:3
All time:9,935
This week:69Up

For more information send a message to info at phpclasses dot org.