2017 © Pedro Peláez
 

library lily

A lightweight web application library for PHP.

image

drpheltright/lily

A lightweight web application library for PHP.

  • Friday, August 28, 2015
  • by DrPheltRight
  • Repository
  • 1 Watchers
  • 11 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 6 Open issues
  • 22 Versions
  • 0 % Grown

The README.md

Lily

A lightweight web application library for PHP 5.3+., (*1)

Lily provides your application with a common sense interface to HTTP. She also provides routing, exception handling, dependency injection and more. This project is inspired by the design of [ring][ring], especially in regards to the use of higher order functions and middleware., (*2)

Lil' Lily has very little to her weighing in at 1019LOC. She aims to be readable in one sitting., (*3)

``` php <?php require DIR.'/vendor/autoload.php';, (*4)

// Lily provides building blocks for applications like routing $handler = new Lily\Application\RoutedApplication([ // Define your routes as plain arrays 'routes' => [['GET', '/', 'Hello world']], ]);, (*5)

// Serve your application over HTTP (new Lily\Adapter\HTTP)->run(compact('handler')); ?>, (*6)


*This example uses PHP 5.4 as do all examples found in the [wiki][wiki]. Lily supports 5.3+ though so you can backport examples.* A slightly more complex example can be found in [`/example`][example]. [ring]: https://github.com/ring-clojure/ring [wiki]: https://github.com/DrPheltRight/lily/wiki/000-overview [example]: https://github.com/DrPheltRight/lily/blob/develop/example/ ## Why Lily? Because she's different. She doesn't enforce you to obide by interfaces and implement classes in a rigid fashion that is tightly coupled to a framework. She instead provides the same functionality with less restriction. By providing decoupled components that behave like ordinary functions, by representing requests and responses as hashes, she doesn't tie you to complex interfaces that force you to stay with a framework. Ultimately she provides you the flexibility to grow your application in whatever way you want by providing all the components you need without fencing you in a framework. With Lily you can compose a framework yourself. ## Installation Installing Lily through [composer][composer] is easy. Just create a `composer.json` file in a new directory for your application: ```json { "require": { "drpheltright/lily": "~0.7.0" } }

Now run the following command in that directory:, (*7)

curl -s https://getcomposer.org/installer | php && php composer.phar install

Done!, (*8)

Documentation

Tests

Build Status [Coverage Status][coveralls], (*9)

To run the test suite, you need composer and it will handle the rest. Lily unit tests are written with PHPUnit., (*10)

php composer.phar install --dev
vendor/bin/phpunit

We try and keep coverage high and no feature is added without some kind of test., (*11)

Development

All development should be done via GitHub Issues. New features should be suggested/planned there and can be identified by the feature tag. Also bugs should be reported with the bug label., (*12)

I'd like some development help with new features. I've labelled the features that people are welcome to hack at with please help. If a task isn't labelled please just comment to ask if you want to help out., (*13)

Features must be tested before pull requests opened., (*14)

License

Copyright © 2014 Luke Morton, (*15)

Distributed under MIT. See LICENSE distributed with Lily for more information. TL;DR, Keep the license found at the top of each Lily file with significant chunks of code you want to reuse., (*16)

The Versions

28/08 2015

dev-develop

dev-develop

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/03 2014
02/03 2014
01/03 2014
24/02 2014

v0.4.4-p1

0.4.4.0-patch1

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

24/02 2014
07/06 2013

v0.4.3

0.4.3.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

07/06 2013

v0.4.2

0.4.2.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/06 2013

v0.4.1

0.4.1.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/06 2013

v0.4.0

0.4.0.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/05 2013

v0.3.6.1

0.3.6.1

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/05 2013

v0.3.6

0.3.6.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

15/05 2013

v0.3.5

0.3.5.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

15/05 2013

v0.3.4

0.3.4.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

15/05 2013

v0.3.3

0.3.3.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

09/05 2013

v0.3.2

0.3.2.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/05 2013

v0.3.1

0.3.1.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/05 2013

v0.3.0.1

0.3.0.1

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

04/05 2013

v0.3.0

0.3.0.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/04 2013

v0.2.1

0.2.1.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

21/04 2013

v0.2.0

0.2.0.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

13/04 2013

v0.1.0

0.1.0.0

A lightweight web application library for PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires