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: 51 This week: 2All time: 9,904 This week: 90Up
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 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
PHP Programming Innovation award nominee
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
Picture of Alexey Dodonov
  Performance   Level  
Name: Alexey Dodonov <contact>
Classes: 35 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 4x

 

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:51
This week:2
All time:9,904
This week:90Up

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