PHPackages                             fishyboat21/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. [API Development](/categories/api)
4. /
5. fishyboat21/simple-api

ActiveLibrary[API Development](/categories/api)

fishyboat21/simple-api
======================

A minimal PHP 8.4+ library for building JSON HTTP APIs with per-file routing

1.0.0-alpha1(1mo ago)03MITPHPPHP &gt;=8.4

Since Jul 8Pushed 1mo agoCompare

[ Source](https://github.com/FishyBoat21/SimpleAPI)[ Packagist](https://packagist.org/packages/fishyboat21/simple-api)[ RSS](/packages/fishyboat21-simple-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

SimpleAPI
=========

[](#simpleapi)

A minimal, zero-dependency PHP 8.4+ library for building JSON HTTP APIs using a **file-per-endpoint pattern**. Each endpoint is a single PHP file in `public/api/` — no complex routing, no route cache, no code generation. Just create a file and it's live.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.4
- Composer

Installation
------------

[](#installation)

```
composer require fishyboat21/simple-api
```

Quick Start
-----------

[](#quick-start)

### 1. Create your first endpoint

[](#1-create-your-first-endpoint)

**`public/api/health.php`**

```
