# Piston

[![Build Status](https://travis-ci.org/refinery29/piston.svg?branch=master)](https://travis-ci.org/refinery29/piston)

Micro Framework for APIs

## Currently Under Development
Highly in flux and not for use in production. 

## Routing

### Controller Based Routing

```php
$application = new Piston();

$application->addRoute(Route::get('jedi/{id}', 'JediController::useTheForce'));

```

### Closure Based Routing

```php
$application = new Piston();

$application->addRoute(Route::get('jedi/{id}', function(Request $request, Response $response)
{
    //do some cool stuff here
    return $response;
}));

```

# Piston

[![Build Status](https://travis-ci.org/refinery29/piston.svg?branch=master)](https://travis-ci.org/refinery29/piston)

Micro Framework for APIs

## Currently Under Development

Highly in flux and not for use in production. 

## Routing

### Controller Based Routing

```php
$application = new Piston();

$application->addRoute(Route::get('jedi/{id}', 'JediController::useTheForce'));

```

### Closure Based Routing

```php
$application = new Piston();

$application->addRoute(Route::get('jedi/{id}', function(Request $request, Response $response)
{
    //do some cool stuff here
    return $response;
}));

```

Add an empty line after headlines
Enhancement: Add an empty line after headlines
