PHPackages                             nebo15/micro-yii - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. nebo15/micro-yii

ActiveLibrary[Framework](/categories/framework)

nebo15/micro-yii
================

Klein based micro framework with Yii2 components

v2.0.2(12y ago)2531MITPHPPHP &gt;=5.3.0

Since Feb 22Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Nebo15/micro-yii)[ Packagist](https://packagist.org/packages/nebo15/micro-yii)[ Docs](https://github.com/chriso/klein.php)[ RSS](/packages/nebo15-micro-yii/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

Klein.php
=========

[](#kleinphp)

[![Build Status](https://camo.githubusercontent.com/b83f2fa094e2743b2c954920e967a933a8450a10632de762f256e53973852e87/68747470733a2f2f7472617669732d63692e6f72672f63687269736f2f6b6c65696e2e7068702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/chriso/klein.php)

**klein.php** is a lightning fast router for PHP 5.3+

- Flexible regular expression routing (inspired by [Sinatra](http://www.sinatrarb.com/))
- A set of [boilerplate methods](#api) for rapidly building web apps
- Almost no overhead =&gt; [2500+ requests/second](https://gist.github.com/878833)

Getting started
---------------

[](#getting-started)

1. PHP 5.4.x is required
2. Install Klein using [Composer](#composer-installation) (recommended) or manually
3. Setup [URL rewriting](https://gist.github.com/874000) so that all requests are handled by **index.php**
4. (Optional) Throw in some [APC](http://pecl.php.net/package/APC) for good measure

Composer Installation
---------------------

[](#composer-installation)

1. Get [Composer](http://getcomposer.org/)
2. Require Klein with `php composer.phar require klein/klein v2.0.x`
3. Install dependencies with `php composer.phar install`

Example
-------

[](#example)

*Hello World* - Obligatory hello world example

```
