gluephp/glue

Almost a micro framework

0.1.4 2017-11-23 09:28 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:56:38 UTC


README

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