Phapi Framework

PHP based framework aiming at rapid and simplified API development as well as
focusing at performance and keeping the code base small and simple.


Get started - Documentation - Contribute

Features

Hello API in a matter of minutes

Phapi comes with a basic configuration that works out of the box. It even includes an Hello API example with your first endpoint and route that makes it easy to continue from there.

Focus on endpoints, not the rest

Phapi is built so that you can focus on what you know best, how your endpoints should work. Phapi takes care of the rest including serialization, content negotitation and error handling.

Growing library of features

Phapi has a growing library of middleware, serializers and cache providers. Pick the features you need and install them fast and easily without having to modify your working endpoints.

Preformance is important

The framework is not just easy to use, since it lets you focus on implementing endpoints it's fast to get an API up and running. It's also developed for maximum performance for your clients.


Latest News

CORS & Rate Limiting

The latest additions to the middleware stack is a middleware for handling HTTP Access Control (CORS) requests as well as a middleware for setting up rate limits on either the entire api or specific endpoints, or a combination of the two.

Read more...

Redis, YAML & XML

In the last few days I've added two new serializers packages. This makes it really easy to add YAML and XML support to your API. Besides the two serializers a Redis Cache Provider package is also available. Redis is one of the fastest options available and it's rich features makes it a popular choice.

Read more...

Introducing Phapi version 2

It's with great pleasure I'm able to introduce the second version of the Phapi Framework. Soon after the first version was released I realized that I wanted to make Phapi PSR-7 compliant and use an middleware driven architecture. Version 1 did support middleware but the core application was no where near an architecture that heavily relied on middleware.

Read more...

Older news | Subscribe to RSS