peakframework / framework
A lightweight and modular micro-framework based on a middleware architecture (PSR-4, PSR-7, PSR-15, PSR-17).
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.0.2
2020-11-09 19:37 UTC
Requires
- php: >=7.4
- http-interop/response-sender: 1.0.*
- psr/container: 1.0.*
- psr/http-factory: 1.0.*
- psr/http-message: 1.0.*
- psr/http-server-handler: 1.0.*
- psr/http-server-middleware: 1.0.*
- psr/log: 1.1.*
Requires (Dev)
- filp/whoops: 2.9.*
- nikic/fast-route: 1.3.*
- nyholm/psr7: 1.3.*
- nyholm/psr7-server: 1.0.*
- phpstan/extension-installer: 1.0.*
- phpstan/phpstan: 0.12.*
- phpstan/phpstan-deprecation-rules: 0.12.*
- phpstan/phpstan-phpunit: 0.12.*
- phpstan/phpstan-strict-rules: 0.12.*
- phpunit/phpunit: 9.4.*
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: 3.5.*
This package is auto-updated.
Last update: 2020-11-09 19:40:05 UTC
README
A lightweight and modular micro-framework based on a middleware architecture (PSR-4, PSR-7, PSR-15, PSR-17).
Basic usage
<?php use Nyholm\Psr7\Factory\Psr17Factory; use Nyholm\Psr7Server\ServerRequestCreator; use Peak\Application; require __DIR__ . '/vendor/autoload.php'; $psr17Factory = new Psr17Factory(); $request = (new ServerRequestCreator($psr17Factory, $psr17Factory, $psr17Factory, $psr17Factory))->fromGlobals(); $app = new Application($request, $psr17Factory); // You must write your application code here $app->run();
Documentation
You can consult the documentation on the official website of Peak.