{"id":13405458,"url":"https://github.com/php-api-clients/supervisord","last_synced_at":"2025-05-14T15:30:47.581Z","repository":{"id":52422284,"uuid":"109483992","full_name":"php-api-clients/supervisord","owner":"php-api-clients","description":"Async first supervisord HTTP API Client for PHP 7","archived":false,"fork":false,"pushed_at":"2023-12-15T17:39:12.000Z","size":169,"stargazers_count":16,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-31T19:46:00.706Z","etag":null,"topics":["api-client","hacktoberfest","php7","python","reactphp","supervisor","supervisord","xml","xml-rpc"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-api-clients.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-11-04T09:56:48.000Z","updated_at":"2024-05-24T01:04:46.000Z","dependencies_parsed_at":"2023-12-15T18:49:46.579Z","dependency_job_id":null,"html_url":"https://github.com/php-api-clients/supervisord","commit_stats":{"total_commits":85,"total_committers":2,"mean_commits":42.5,"dds":"0.23529411764705888","last_synced_commit":"94539b73433b48871058b5be7251b57d99a805bd"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-api-clients%2Fsupervisord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-api-clients%2Fsupervisord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-api-clients%2Fsupervisord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-api-clients%2Fsupervisord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-api-clients","download_url":"https://codeload.github.com/php-api-clients/supervisord/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254171580,"owners_count":22026466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","hacktoberfest","php7","python","reactphp","supervisor","supervisord","xml","xml-rpc"],"created_at":"2024-07-30T19:02:02.729Z","updated_at":"2025-05-14T15:30:45.225Z","avatar_url":"https://github.com/php-api-clients.png","language":"PHP","readme":"# Supervisord HTTP API Client for PHP 7\n\n[![Build Status](https://travis-ci.org/php-api-clients/supervisord.svg?branch=master)](https://travis-ci.org/php-api-clients/supervisord)\n[![Latest Stable Version](https://poser.pugx.org/api-clients/supervisord/v/stable.png)](https://packagist.org/packages/api-clients/supervisord)\n[![Total Downloads](https://poser.pugx.org/api-clients/supervisord/downloads.png)](https://packagist.org/packages/api-clients/supervisord)\n[![Code Coverage](https://scrutinizer-ci.com/g/php-api-clients/supervisord/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/php-api-clients/supervisord/?branch=master)\n[![License](https://poser.pugx.org/api-clients/supervisord/license.png)](https://packagist.org/packages/api-clients/supervisord)\n[![PHP 7 ready](http://php7ready.timesplinter.ch/php-api-clients/supervisord/badge.svg)](https://travis-ci.org/php-api-clients/supervisord)\n\n# Install\n\nTo install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.\n\n```\ncomposer require api-clients/supervisord\n```\n\n# Usage\n\nThe 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.\n\n```php\nuse ApiClients\\Client\\Supervisord\\AsyncClient;\nuse ApiClients\\Client\\Supervisord\\Resource\\StateInterface;\nuse React\\EventLoop\\Factory;\nuse function ApiClients\\Foundation\\resource_pretty_print;\n\n$loop = Factory::create();\n$client = AsyncClient::create('127.0.0.1:9005', $loop); // My supvervisor runs at 127.0.0.1:9005 changes for your HTTP IP + port\n\n$client-\u003estate()-\u003edone(function (StateInterface $state) {\n    resource_pretty_print($state);\n});\n\n$loop-\u003erun();\n\n```\n\nFor more examples check the [examples](examples) directory.\n\n# License\n\nThe MIT License (MIT)\n\nCopyright (c) 2017 Cees-Jan Kiewiet\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-api-clients%2Fsupervisord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-api-clients%2Fsupervisord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-api-clients%2Fsupervisord/lists"}