ideationnet / wafer
Very Thin, no-framework PHP
0.1
2017-11-14 10:49 UTC
Requires
- php: ~7.0
- ideationnet/invoker-router-middleware: ^1.0
- ideationnet/stack-runner: ^4.0
- middlewares/utils: ^0.13.0
- php-di/php-di: ^5.4
- zendframework/zend-diactoros: ^1.6
Requires (Dev)
- phpunit/phpunit: ^6.4
- squizlabs/php_codesniffer: ^3.1
This package is not auto-updated.
Last update: 2024-10-27 05:04:33 UTC
README
Simple, very thin, no-framework PHP.
Install
Via composer
composer require ideationnet/wafer
Usage
The simplest way to use this is to create an "invokable":
<?php use Zend\Diactoros\Response\HtmlResponse; class Hello { public function __invoke() { return new HtmlResponse('Hello!'); } }
And then just run it by creating an index.php
:
<?php use IdNet\Wafer\Application; use Example\Hello; require __DIR__.'/../vendor/autoload.php'; Application::run([ 'routes' => [ ['GET', '/', Hello::class] ] ]);