2017 © Pedro Peláez
 

library wilson

A PHP micro framework designed for simplicity and performance

image

rawebone/wilson

A PHP micro framework designed for simplicity and performance

  • Tuesday, February 10, 2015
  • by rawebone
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Wilson

Author Latest Version Software License Build Status HHVM Status Coverage Status Quality Score Total Downloads SensioLabs Insight, (*1)

Wilson is a PHP micro framework designed for simplicity and performance. It main features are:, (*2)

  • Annotation based routing
  • Middleware
  • Service Location
  • HTTP Request/Response abstraction
  • HTTP Caching
  • Unit Testing

Its design is based around the Slim and Symfony frameworks, combining elements of both with the goal of creating system which is fast, correct, well documented, and simple., (*3)

Usage

At a glance, an application in the framework looks like this:, (*4)

<?php

// File: public/index.php

require_once "/path/to/vendor/autoload.php";

$api = new Wilson\Api();
$api->resources = array("My\Restful\ResourceA");
$api->dispatch();

<?php

// File: src/My/Restful/ResourceA.php

namespace My\Restful;

class ResourceA
{
    /**
     * @route GET /resource-a/
     */
    function getCollection($request, $response, $services)
    {
        $response->json(array("a", "b", "c"));
    }

    /**
     * @route GET /resource-a/{file}.md
     * @where file [a-z]+
     */
    function getRecord($request, $response, $services)
    {
        $response->setBody(get_file($request->getParam("file")));
        $response->setHeader("Content-Type", "text/plain");
    }
}

Look at the wiki for a proper guide through the functionality., (*5)

Credits

This framework is a patchwork consisting of the ideas and pieces of code from numerous other projects:, (*6)

  • Josh Lockhart and other contributors to Slim Framework
  • Fabien Potencier and other contributors to Symfony
  • Matthew Weier O'Phinney and other contributors to phly/http

License

The code is under the MIT license. Third party code licences:, (*7)

The Versions

10/02 2015

dev-security

dev-security

A PHP micro framework designed for simplicity and performance

  Sources   Download

MIT

The Development Requires

by Nick Rawe

micro service framework testing service location rest http routing router sl testable

04/02 2015

dev-master

9999999-dev

A PHP micro framework designed for simplicity and performance

  Sources   Download

MIT

The Development Requires

by Nick Rawe

micro service framework testing service location rest http routing router sl testable

28/01 2015

1.0.0-alpha3

1.0.0.0-alpha3

A PHP micro framework designed for simplicity and performance

  Sources   Download

MIT

The Development Requires

by Nick Rawe

micro service framework testing service location rest http routing router sl testable

23/01 2015

1.0.0-alpha2

1.0.0.0-alpha2

A PHP micro framework designed for simplicity and performance

  Sources   Download

MIT

The Development Requires

by Nick Rawe

micro service framework testing service location rest http routing router sl testable

02/01 2015

1.0.0-alpha

1.0.0.0-alpha

A Resource Orientated Framework for designing RESTful APIs

  Sources   Download

MIT

The Development Requires

by Nick Rawe

rest routing testable