PHPackages                             incapption/simple-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. incapption/simple-api

ActiveLibrary[Framework](/categories/framework)

incapption/simple-api
=====================

Simple Api Framework

v2.4.5(2y ago)1552MITPHPPHP &gt;=7.2

Since Sep 30Pushed 2y agoCompare

[ Source](https://github.com/incapption-public/SimpleApi)[ Packagist](https://packagist.org/packages/incapption/simple-api)[ RSS](/packages/incapption-simple-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (28)Used By (0)

SimpleApi
=========

[](#simpleapi)

Tiny package for setting up a simple REST API with PHP.
Ability to group routes and define middlewares on a group or route level.

Usage
-----

[](#usage)

1. Implement the iApiController interface with your controller. A method can return `StringResult`, `DataResult` or `ErrorResult` which always return arrays with different structure based on the result.

```
