{"id":23962734,"url":"https://github.com/smalot/kong-api","last_synced_at":"2025-07-10T19:06:48.385Z","repository":{"id":57053542,"uuid":"104191465","full_name":"smalot/kong-api","owner":"smalot","description":"PHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering high performance and reliability.","archived":false,"fork":false,"pushed_at":"2017-11-28T00:31:53.000Z","size":27,"stargazers_count":1,"open_issues_count":3,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T02:43:22.814Z","etag":null,"topics":["composer","kong","kong-api","php-wrapper","reliability"],"latest_commit_sha":null,"homepage":null,"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/smalot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-20T09:00:20.000Z","updated_at":"2024-10-22T04:12:21.000Z","dependencies_parsed_at":"2022-08-24T05:31:51.331Z","dependency_job_id":null,"html_url":"https://github.com/smalot/kong-api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smalot%2Fkong-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smalot%2Fkong-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smalot%2Fkong-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smalot%2Fkong-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smalot","download_url":"https://codeload.github.com/smalot/kong-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705741,"owners_count":21148583,"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":["composer","kong","kong-api","php-wrapper","reliability"],"created_at":"2025-01-06T20:54:37.982Z","updated_at":"2025-04-13T11:32:43.808Z","avatar_url":"https://github.com/smalot.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Kong\n====\n\nPHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering high performance and reliability.\n\n[![Build Status](https://travis-ci.org/smalot/kong-api.png?branch=master)](https://travis-ci.org/smalot/kong-api)\n[![Current Version](https://poser.pugx.org/smalot/kong-api/v/stable.png)](https://packagist.org/packages/smalot/kong-api)\n[![composer.lock](https://poser.pugx.org/smalot/kong-api/composerlock)](https://packagist.org/packages/smalot/kong-api)\n\n[![Total Downloads](https://poser.pugx.org/smalot/kong-api/downloads.png)](https://packagist.org/packages/smalot/kong-api)\n[![Monthly Downloads](https://poser.pugx.org/smalot/kong-api/d/monthly)](https://packagist.org/packages/smalot/kong-api)\n[![Daily Downloads](https://poser.pugx.org/smalot/kong-api/d/daily)](https://packagist.org/packages/smalot/kong-api)\n\n\nCompatibility\n=============\n\nCurrently supported Kong version: `0.11`.\n\nSupported services:\n- Api\n- Certificate\n- Consumer\n- Plugin\n- Sni\n- Target\n- Upstream\n\nRequires at least PHP 5.6.\n\n\nInstall\n=======\n\nThis library can be installed with composer:\n\n````sh\ncomposer require smalot/kong-api\n````\n\nUsage\n=====\n\n````php\n$factory = new \\Smalot\\Kong\\ServiceFactory();\n/** @var \\Smalot\\Kong\\Services\\Api $service */\n$service = $factory-\u003eget('api');\n$response = $service-\u003ecreate(\n  [\n    'name' =\u003e $name,\n    'uris' =\u003e '/ping',\n    'upstream_url' =\u003e 'http://ping/',\n  ]\n);\n$api = $response-\u003ejson();\nvar_dump($api);\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmalot%2Fkong-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmalot%2Fkong-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmalot%2Fkong-api/lists"}