phapi / phapi-framework
Phapi is a PHP based framework aiming at rapid and simplified API development as well as focusing at performance and keeping the code base small and simple.
Installs: 1 520
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 2
Forks: 0
Open Issues: 1
Type:framework
Requires
- php: >=5.6.0
- phapi/cache-nullcache: 1.*
- phapi/contract: 1.*
- phapi/di: 1.*
- phapi/endpoint: 1.*
- phapi/exception: 1.*
- phapi/http: 1.*
- phapi/log: 1.*
- phapi/middleware-content-negotiation: 1.*
- phapi/middleware-courier: 1.*
- phapi/middleware-method-override: 1.*
- phapi/middleware-mistake: 1.*
- phapi/middleware-postbox: 1.*
- phapi/middleware-route: 1.*
- phapi/middleware-uuid: 1.*
- phapi/pipeline: 1.*
- phapi/serializer-json: 1.*
Replaces
- ahinko/phapi: 2.0.0
This package is not auto-updated.
Last update: 2021-02-05 22:39:58 UTC
README
Phapi is a PHP based framework aiming at rapid and simplified API development as well as focusing at performance and keeping the code base small and simple.
What's new in version 2
This version is PSR-7 Http Message compliant and takes full advantage of that fact by relying on middleware for almost every aspect of the framework. Error handling, routing, responding to the client as well as many other functions are all in fact middleware.
There is an Dependency injection container that's mainly used for configuration. Each endpoint has access to both the container as well as the [https://github.com/phapi/http](request and response) objects.
Install with configuration (recommended)
The phapi/phapi-configuration project includes everything you need to set up a simple hello world example. Download the latest version of the package and extract it to an empty directory. This zip file includes all the default configuration. After you've extracted the zip file you need to run composer:
$ composer install
Installation via Composer
Install the Phapi framework via Packagist and Composer.
$ composer require phapi/phapi-framework:2.*
Configuration
See the documentation for more information about configuration options and how to add extra packages.
Documentation
The documentation can be found at http://phapi.github.io/.
License
Phapi is licensed under the MIT License - see the license.md file for details
Contribute
Contribution, bug fixes etc are always welcome.