PHP code example of levkopo / apikit
1. Go to this page and download the library: Download levkopo/apikit library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
levkopo / apikit example snippets
use levkopo\apikit\ApiKit;
ApiKit::create()
->method("hello_world", function(ApiKit $apiKit) {
return "Hello, world!";
})
->method("hwp", function(ApiKit $apiKit) {
[$someKey] = $apiKit->params(["key"]);
return "Key: $someKey";
})
->start();