ppeco/apipp

Library for api backend

Maintainers

Details

github.com/PPEco/apipp

Source

Issues

Installs: 28

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/ppeco/apipp

1.1.1 2021-07-26 12:41 UTC

This package is auto-updated.

Last update: 2025-09-26 21:56:45 UTC


README

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();