2017 © Pedro Peláez
 

library microflex

A flexible and powerful PHP Microframework to create Websites and Restful apis. (Inspired on Laravel and Expressjs).

image

betopan/microflex

A flexible and powerful PHP Microframework to create Websites and Restful apis. (Inspired on Laravel and Expressjs).

  • Sunday, May 14, 2017
  • by bepan
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Go to PHP code, (*1)

Microflex

  • Register routes with closures midd.
  • Register routes with a class method midd.
  • Check that path and method match register routes.
  • Recursive Dependency Injection as a singleton.
  • Match the current uri with the register uri pattern.
  • Register middlewares as route level.
  • Register 404 middlewares.
  • Register nested middlewares as group level.
  • Register nested prefixes to group route names.
  • Request Class: all, input, getCookie(s), (g/s)etSessionValue, getAllSession, unsetSessionValue, destroySession.
  • Response Class: setContentType, json, send, render, redirect, setCookie, unsetCookie, setCode.
  • Helper functions: session, input, has_session

Future

  • RouteMethod Class.
  • Session Class.
  • Cookie Class.
  • Constructor Middlewares.

Missings

  • Fix Uri spliting by '/'.
  • Populate App class.
  • process flashed session values at bootstrap.
  • Refactor view helper global functions.
  • Generate documentation on this file.

App Code

<?php
namespace Microflex\Http;

class App
{
    protected $router;

    public function __construct(Router $router)
    {
        $this->router = $router;
    }
}

The Versions

14/05 2017

dev-master

9999999-dev

A flexible and powerful PHP Microframework to create Websites and Restful apis. (Inspired on Laravel and Expressjs).

  Sources   Download

The Development Requires

by Alberto Chapa

14/05 2017

1.0.0

1.0.0.0

A flexible and powerful PHP Microframework to create Websites and Restful apis. (Inspired on Laravel and Expressjs).

  Sources   Download

The Development Requires

by Alberto Chapa