2017 © Pedro Peláez
 

library liten

Liten is a small, simple, and restful micro framework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

image

liten/liten

Liten is a small, simple, and restful micro framework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

  • Monday, June 18, 2018
  • by parkerj
  • Repository
  • 1 Watchers
  • 3 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 88 % Grown

The README.md

Liten

Build Status Latest Stable Version Total Downloads License Join the chat at https://gitter.im/parkerj/Liten, (*1)

Liten is a small and simple microframework. Even though it is small, you can still use it to build intelligent and dynamic restful api's., (*2)

System Requirement

Minimum PHP version 5.4, (*3)

Features

  • Simple Configuration
  • Static Routes
  • Dynamic Routes
  • Route Subpatterns
  • Group Routing
  • Before Route Middlewares
  • Before Router Middlewares
  • After Router Middlewares
  • HTTP methods and responses

Install

$ composer require liten/liten

Rewrite Rules

.htaccess

RewriteEngine On

# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
#
# RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

Nginx (root directory)

location / {
    try_files $uri /index.php$is_args$args;
}

Nginx (subdirectory)

location /liten {
    try_files $uri /liten/index.php$is_args$args;
}

Hello World Example

Instantiate a new Liten Application:, (*4)

$app = new \Liten\Liten();

GET Route:, (*5)

$app->get('/hello/(\w+)/' function($name) {
    echo "Howdy, $name";
}

Run the new Liten Application, (*6)

$app->run();

Sample Application

The Liten Blog is a sample application to show what you can do with the Liten Framework., (*7)

Documentation & Community

Would love to have your input and help into making Liten a small but yet powerful micro framework. Head on over to the online documentation site to ask questions and or make suggestions., (*8)

The Versions

18/06 2018

dev-master

9999999-dev

Liten is a small, simple, and restful micro framework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

framework rest microframework liten

18/06 2018

v1.0.9

1.0.9.0

Liten is a small, simple, and restful micro framework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

framework rest microframework liten

18/06 2018

dev-develop

dev-develop

Liten is a small, simple, and restful micro framework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

framework rest microframework liten

18/06 2018

v1.0.8

1.0.8.0

Liten is a small, simple, and restful micro framework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

framework rest microframework liten

04/10 2016

v1.0.7

1.0.7.0

Liten is a small, simple, and restful micro framework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

framework rest microframework liten

03/10 2016

v1.0.6

1.0.6.0

Liten is a small, simple, and restful micro framework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

framework rest microframework liten

03/10 2016

v1.0.5

1.0.5.0

Liten is a small, simple, and restful micro framework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

framework rest microframework liten