Mezon Service PHP API Client: Send HTTP requests to remote service APIs

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-14 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 20 This week: 16All time: 10,081 This week: 23Up
Version License PHP version Categories
service-client 1.0.0MIT/X Consortium ...7.2HTTP, PHP 5, Web services
Description Author

This package be used to send HTTP requests to remote service APIs.

It extends the custom HTTP client class to implement functions that can send HTTP requests to the Web server of a service API to call known API functions.

Currently can call API functions to connect to the API to create a session and login as a given user with a password.

Picture of Alexey Dodonov
  Performance   Level  
Name: Alexey Dodonov <contact>
Classes: 27 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 3x

 

Details

Service client Build Status codecov Scrutinizer Code Quality

Intro

Mezon provides simple client services based on the Mezon framework.

Installation

Just print in console

composer require mezon/service-client

And that's all )

Setup

First of all you need to create client and set to wich service it must send requests:

$client = new \Mezon\Service\ServiceClient('https://some-service.com/');

And since then you can connect to this service:

client->connect('login', 'password');

Default methods

You already know about one out-of-the box method - connect. But there are more of them.

  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
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Plain text file ServiceClient.php Class Class source

  Files folder image Files  /  Tests  
File Role Description
Files folder imageConf (6 files)
  Plain text file ServiceClientTests.php Class Class source
  Plain text file ServiceClientUnitTest.php Class Class source
  Plain text file ServiceClientUnitTests.php Class Class source

  Files folder image Files  /  Tests  /  Conf  
File Role Description
  Accessible without login Plain text file construct-with-login.json Data Auxiliary data
  Accessible without login Plain text file login-as.json Data Auxiliary data
  Accessible without login Plain text file login-with-invalid-session-id.json Data Auxiliary data
  Accessible without login Plain text file self-id.json Data Auxiliary data
  Accessible without login Plain text file self-login.json Data Auxiliary data
  Accessible without login Plain text file test-request.json Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:20
This week:16
All time:10,081
This week:23Up

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