2017 © Pedro Peláez
 

library framework

A lightweight PHP micro framework that helps you get shit done.

image

enlighten/framework

A lightweight PHP micro framework that helps you get shit done.

  • Sunday, September 11, 2016
  • by roydejong
  • Repository
  • 2 Watchers
  • 4 Stars
  • 135 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 6 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Enlighten PHP Framework

Documentation Status Build Status Latest Stable Version Latest Unstable Version License Test Coverage, (*1)

Enlighten is a simple, lean, high-performance PHP micro framework that acts as the foundation for your web application., (*2)

This is a modern framework for PHP 5 that doesn't get in your way. Just the building blocks you need to accelerate your application development and simply get shit done., (*3)

  • Easy HTTP request and response management: forms, headers, cookies, files and more.
  • Razor fast routing with dynamic URL variables and dependency injection.
  • Application and route filters for handling authentication, exceptions, etc.

It's easy to use:, (*4)

$app->get('/hello/$name', function ($name) {
    echo "Hi there, $name";
});

It is awesome because it is:, (*5)

  • Built for ease of use and performance.
  • Low on fat: small code base with minimal external dependencies.
  • Stable: tested extensively with a battery of unit tests.
  • Future-proof: Fully compatible with HHVM and PHP 7.

Getting started

To get started, add Enlighten as a Composer dependency to your project:, (*6)

composer require enlighten/framework

In the entry point (index.php) of your application, initialize and start Enlighten:, (*7)

$app = new Enlighten();
$app->start();

You'll need to make sure that your web server redirects all requests you want to handle with Enlighten to this script. This code will initialize a blank application and process all incoming requests., (*8)

Next, you will want to define routes. Routes map an incoming request to an appropriate function or controller that can respond to it. It's easy to set up:, (*9)

$app->get('/articles/$name', function ($name) {
    // Triggered for all GET requests to /articles/*
    echo "You requested an article with this name: $name";
});

Check out the full documentation and quickstart guide at https://enlighten.readthedocs.org/en/latest/., (*10)

The Versions

11/09 2016

dev-master

9999999-dev

A lightweight PHP micro framework that helps you get shit done.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Roy de Jong

micro framework http routing

22/11 2015

v0.1-alpha

0.1.0.0-alpha

A lightweight PHP micro framework that helps you get shit done.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Roy de Jong

micro framework http routing