2017 © Pedro PelĂĄez
 

library exedra

Nestful route oriented PHP micro framework

image

rosengate/exedra

Nestful route oriented PHP micro framework

  • Sunday, November 26, 2017
  • by eimihar
  • Repository
  • 1 Watchers
  • 7 Stars
  • 395 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 2 % Grown

The README.md

Exédra

Build Status MIT Licence, (*1)

A nestful route oriented PHP Microframework., (*2)

Introduction

This PHP microframework focuses on nestable/groupable URI path/segments based routing, that allows you to prototype your application through URI routing without losing control over it's depth. Route is unique and identifiable by name, tag and queriable through request dispatch, or finder within URL factory. Along with nested routing, is middlewarable routing group to give you more control over your application design., (*3)

The goal is to be contextual, explicitful while being simple and extremely minimal at the same time. It can be intended to work as a supporting framework to your existing application., (*4)

Features

  • Nestable routing
  • Minimal, contextual, flexible, components agnostic
  • Annotated based route-action controller (optional)
  • Routing component built for Psr7 Http Messages
  • Psr7 middleware support
  • Container based
  • Explicit dependency injection (not auto wiring)

Documentation

More detailed documentation and installation can be found at http://exedra.rosengate.com/docs, (*5)

Installation

composer require rosengate/exedra

Example

Just an example to quickly test exedra., (*6)

Create an index.php file with the following contents., (*7)

<?php
use Exedra\Routing\Group;
use Exedra\Runtime\Context;
use Exedra\Application;

require_once __DIR__ . '/vendor/autoload.php';

$app = new Application(__DIR__);

$app->map['web']->any('/hello')->group(function (Group $group) {
    $group->middleware(function (Context $context) {
        return strtoupper($context->next($context));
    });

    $group['welcome']->get('/:name')->execute(function (Context $context) {
        return 'Hello ' . $context->param('name');
    });
});

$app->dispatch();

And run a simple web server on the same dir., (*8)

php -S localhost:9000

Then open up your browser and type http://localhost:9000/hello/world to get your HELLO WORLD., (*9)

Heads up to the documentation http://exedra.rosengate.com/docs for more detailed setup., (*10)

Thank you!

I hope you guys like it!, (*11)

License

MIT License, (*12)

The Versions

26/11 2017

dev-master

9999999-dev http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

26/11 2017

v0.9.3

0.9.3.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

17/10 2017

v0.9.2

0.9.2.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

26/02 2017

v0.9.1

0.9.1.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

The Requires

 

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

04/02 2017

v0.9.0

0.9.0.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

The Requires

 

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

22/06 2016

v0.3.0

0.3.0.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

19/10 2015

v0.2.4

0.2.4.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

18/10 2015

v0.2.3

0.2.3.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

04/09 2015

v0.2.2

0.2.2.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

18/07 2015

v0.2.1

0.2.1.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

02/07 2015

v0.2.0

0.2.0.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

by Ahmad Rahimie Ahmad Zailani

framework php route microframework router exedra rosengate

10/02 2015

v0.1.0

0.1.0.0 http://github.com/rosengate/exedra

Nestful route oriented PHP micro framework

  Sources   Download

MIT

The Requires

 

by Ahmad Rahimie Ahmad Zailani

framework route microframework exedra rosengate