Download the PHP package deweppro/framework without Composer
On this page you can find all versions of the php package deweppro/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deweppro/framework
More information about deweppro/framework
Files in deweppro/framework
Package framework
Short Description RESTFul API framework
License MIT
Homepage https://framework.dewep.pro
Informations about the package framework
API Framework Dewep
skeleton: https://github.com/deweppro/framework-api-skeleton
How to initialize an instance:
A sample configuration file [config.yml]:
To display in the response file in which the error occurred:
The answer format for scalar answers is text/html; charset=utf-8
, for non - scalar answers::
Routing
You can add routes through the config file
Where the placeholder {user}
will be passed to the controller as a variable:
Or you can specify a route generator, which must contain a method - public function handler()
Middleware
You can specify the middleware to be executed before and after the main code is executed. Middleware should match the interface \Dewep\Interfaces\MiddlewareInterface
Dependency injection
For dependency injection you can create providers that must match the interface Dewep\Interfaces\ProviderInterface
Access to providers occurs through the Container: Container::get('logger')->...
Console
Work with the console occurs through the console application
The console command is added to the config file as follows: command name: class
All command classes must match the interface \Dewep\Interfaces\ConsoleInterface
Executing a command with parameters:
View a list of commands:
Directory structure
All versions of framework with dependencies
ext-json Version *
ext-mbstring Version *
deweppro/client Version ^2.0
deweppro/db Version ^1.0
deweppro/http Version ^3.0
deweppro/patterns Version ^2.0
monolog/monolog Version ^1.0
psr/log Version ^1.1
symfony/yaml Version ^3.4
predis/predis Version ^1.1
twig/twig Version ^2.0