Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApiPP

Library to simplify writing API

Installation

composer require ppeco/apipp

Example

use apipp\ApiPP;

require_once "vendor/autoload.php";

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

Releases

Packages

Contributors

Languages