File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,46 @@ PHP Wrapper for Kong API Gateway - Microservices Management Layer, delivering hi
1212[ ![ Daily Downloads] ( https://poser.pugx.org/smalot/kong-api/d/daily )] ( https://packagist.org/packages/smalot/kong-api )
1313
1414
15+ Compatibility
16+ =============
17+
18+ Currently supported Kong version: ` 0.11 ` .
19+
20+ Supported services:
21+ - Api
22+ - Certificate
23+ - Consumer
24+ - Plugin
25+ - Sni
26+ - Target
27+ - Upstream
28+
29+ Requires at least PHP 5.6.
30+
31+
32+ Install
33+ =======
34+
35+ This library can be installed with composer:
36+
37+ ```` sh
38+ composer require smalot/kong-api
39+ ````
40+
41+ Usage
42+ =====
43+
44+ ```` php
45+ $factory = new \Smalot\Kong\ServiceFactory();
46+ /** @var \Smalot\Kong\Services\Api $service */
47+ $service = $factory->get('api');
48+ $response = $service->create(
49+ [
50+ 'name' => $name,
51+ 'uris' => '/ping',
52+ 'upstream_url' => 'http://ping/',
53+ ]
54+ );
55+ $api = $response->json();
56+ var_dump($api);
57+ ````
You can’t perform that action at this time.
0 commit comments