Skip to content

ideationnet/wafer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Wafer

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]
    ]

]);

About

Very thin, no-framework PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages