PHP code example of ppeco / apipp

1. Go to this page and download the library: Download ppeco/apipp 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/ */

    

ppeco / apipp example snippets


use apipp\ApiPP;

    ->method("hello_world", function(ApiPP $apiKit) {
        return "Hello, world!";
    })
    ->method("hwp", function(ApiPP $apiKit) {
        [$someKey] = $apiKit->get(["key"]);
        return "Key: $someKey";
    })
    ->start();