All Projects → php-api-clients → Supervisord

php-api-clients / Supervisord

Licence: mit
Async first supervisord HTTP API Client for PHP 7

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Supervisord

Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (+20635.71%)
Mutual labels:  api-client, xml
Genius Php
PHP library for Genius API (http://genius.com/developers)
Stars: ✭ 10 (-28.57%)
Mutual labels:  api-client
Reactphp Symfony
Symfony 4 Hello World example running on ReactPHP.
Stars: ✭ 24 (+71.43%)
Mutual labels:  reactphp
Facepy
Facepy makes it really easy to use Facebook's Graph API with Python
Stars: ✭ 845 (+5935.71%)
Mutual labels:  api-client
Ps Webapi
(Migrated from CodePlex) Let PowerShell Script serve or command-line process as WebAPI. PSWebApi is a simple library for building ASP.NET Web APIs (RESTful Services) by PowerShell Scripts or batch/executable files out of the box.
Stars: ✭ 24 (+71.43%)
Mutual labels:  xml
Litedb Webshell
Web Shell console application for LiteDB
Stars: ✭ 8 (-42.86%)
Mutual labels:  xml
Cheatyxml
CheatyXML is a Swift framework designed to manage XML easily
Stars: ✭ 23 (+64.29%)
Mutual labels:  xml
Xml Js
Converter utility between XML text and Javascript object / JSON text.
Stars: ✭ 874 (+6142.86%)
Mutual labels:  xml
Visma.net
This is an open source API client for Visma.net Integrations
Stars: ✭ 10 (-28.57%)
Mutual labels:  api-client
Xmlbuilder Js
An XML builder for node.js
Stars: ✭ 843 (+5921.43%)
Mutual labels:  xml
Puree
Metadata extraction from the Pure Research Information System.
Stars: ✭ 8 (-42.86%)
Mutual labels:  api-client
Draggablelayout
Draggable XML Layout for Android
Stars: ✭ 26 (+85.71%)
Mutual labels:  xml
Abclinuxuapi
API for http://abclinuxu.cz.
Stars: ✭ 8 (-42.86%)
Mutual labels:  api-client
Music Player
Android xml template layout for media/music player.
Stars: ✭ 24 (+71.43%)
Mutual labels:  xml
Node Api.ai
[DEPRECATED] Ultimate Node.JS SDK for api.ai
Stars: ✭ 12 (-14.29%)
Mutual labels:  api-client
Snowflake
❄️ SVG in Swift
Stars: ✭ 924 (+6500%)
Mutual labels:  xml
Essa
Embeddable SCADA for Small Applications
Stars: ✭ 7 (-50%)
Mutual labels:  xml
Reactphp Reactjs Hostname Analyzer Example
Stars: ✭ 8 (-42.86%)
Mutual labels:  reactphp
Curlie
The power of curl, the ease of use of httpie.
Stars: ✭ 877 (+6164.29%)
Mutual labels:  api-client
Kubernetes Client
Simplified Kubernetes API client for Node.js.
Stars: ✭ 874 (+6142.86%)
Mutual labels:  api-client

Supervisord HTTP API Client for PHP 7

Build Status Latest Stable Version Total Downloads Code Coverage License PHP 7 ready

Install

To install via Composer, use the command below, it will automatically detect the latest version and bind it with ^.

composer require api-clients/supervisord

Usage

The client needs two things, an IP + port to connect to, and the ReactPHP event loop. Once you created the client you can call the state method to get supervisord's current state.

use ApiClients\Client\Supervisord\AsyncClient;
use ApiClients\Client\Supervisord\Resource\StateInterface;
use React\EventLoop\Factory;
use function ApiClients\Foundation\resource_pretty_print;

$loop = Factory::create();
$client = AsyncClient::create('127.0.0.1:9005', $loop); // My supvervisor runs at 127.0.0.1:9005 changes for your HTTP IP + port

$client->state()->done(function (StateInterface $state) {
    resource_pretty_print($state);
});

$loop->run();

For more examples check the examples directory.

License

The MIT License (MIT)

Copyright (c) 2017 Cees-Jan Kiewiet

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].