Skip to content

gluephp/glue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glue - Almost a micro framework

This package is still in development. I would suggest to wait until there's at least one tagged release.

Glue is really just, as the name suggests, the glue between some awesome 3rd party packages. It's built to be extendable and only comes with the most basic features out of the box, like:

  1. IoC Container - illuminate/container
  2. Router - mrjgreen/phroute
  3. Request - symfony/http-foundation
  4. Response - symfony/http-foundation
  5. Sessions - symfony/http-foundation
  6. Config - maer/config

Installation

Use Composer:

$ composer require gluephp/glue dev-develop

Simple example

It basically works like any other micro framework:

<?php

// Include Composers autoloader
include 'path/to/vendor/autoload.php';

// Initialize the app
$app = new Glue\App;

// Create a route
$app->router->get('/', function() {
    return 'Hello World';
});

// Run the app
$app->run();

More...

...info will come