Download the PHP package gelembjuk/php-easy-app without Composer
On this page you can find all versions of the php package gelembjuk/php-easy-app. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gelembjuk/php-easy-app
More information about gelembjuk/php-easy-app
Files in gelembjuk/php-easy-app
Package php-easy-app
Short Description ThePHP Package for building Web applications as fast as possible. This package enables you to create web services efficiently, allowing you to build robust solutions with minimal development time.
License MIT
Informations about the package php-easy-app
PHP EasyApp
PHP Package for building Web applications as fast as possible.
This package enables you to create web services efficiently, allowing you to build robust solutions with minimal development time.
The idea is that a developer should spent minimum time on infrastructure of the application, reading a request and building the response. The developer should think only one the buisiness logic of the application. But should not care a lot about how to parse a request and how to build correct response format based on a request context.
Example
One of use cases.
Sometimes your application raises NotFoundException. Depending on a request you will want to return a JSON document with the error description, but in other case it would be a HTML page with the error. But yet on other case it will be a redirect to some other page.
This application automates this. The format of the response is decided in the smart way depending on a context.
Installation
Using composer: gelembjuk/php-easy-app
Hello World!
Usage
This is simplest "one file" example of an app usage. On a practice you will have smoe more files/folders. But it will be same standard structure for all our apps.
Author
Roman Gelembjuk (@gelembjuk)