PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Alexey Dodonov   Mezon PHP CRUD API Service Client   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Mezon PHP CRUD API Service Client
Client to call an API that provides a CRUD service
Author: By
Last change:
Date: 4 years ago
Size: 1,247 bytes
 

Contents

Class file image Download

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