2017 © Pedro Peláez
 

library lightphp

LightPHP simple request and response framework

image

lightphp/lightphp

LightPHP simple request and response framework

  • Monday, June 19, 2017
  • by samstreet
  • Repository
  • 1 Watchers
  • 2 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Lightphp

About

A lightweight PHP framework built with scalability in mind., (*1)

How to use

Framework comes pre loaded with an index route and a core service., (*2)

Start

  • Composer install to autoload the required files
  • Vagrant up from project route
  • Navigate to http://127.0.0.1:8080/
  • Enjoy

Create config file (config/config.php:

  • routes
  • services, (*3)

    return [
    'routes' => [
        [
            'method' => ['GET'],
            'name' => 'index',
            'route' => '/',
            'callable' => [
                'controller' => 'LightPHP\MVC\Controller\IndexController',
                'namespace' => 'LightPHP\MVC\Controller',
                'action' => 'index',
                'view' => 'index/index'
            ]
        ],
    ],
    'services' => [
        'core_service' => 'LightPHP\Services\CoreService'
    ],
    ];
    

Future Updates

  • Unit testing
  • Performance improvements
  • Check availble methods for a route
  • Authorization
  • Dynamic routing

The Versions

19/06 2017

dev-master

9999999-dev

LightPHP simple request and response framework

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Sam Street