PHPackages                             vladdyslav/klein-up - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. vladdyslav/klein-up

ActiveLibrary[HTTP &amp; Networking](/categories/http)

vladdyslav/klein-up
===================

A lightning fast router for PHP

0.0.4(1y ago)2258MITPHPPHP &gt;=8.3

Since Aug 1Pushed 1y agoCompare

[ Source](https://github.com/vladdyslav/klein-up)[ Packagist](https://packagist.org/packages/vladdyslav/klein-up)[ Docs](https://github.com/vladdyslav/klein-up)[ RSS](/packages/vladdyslav-klein-up/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

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

[](#kleinphp)

**klein-up** is a fork of popular **klein.php** fast &amp; flexible router, adopted for PHP 8.3+

- Flexible regular expression routing (inspired by [Sinatra](http://www.sinatrarb.com/))
- A set of [boilerplate methods](#api) for rapidly building web apps

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

[](#getting-started)

1. PHP 8.3.x is required
2. Install Klein using [Composer](#composer-installation) (recommended) or manually
3. Setup URL rewriting so that all requests are handled by **index.php**

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

[](#composer-installation)

1. Get [Composer](http://getcomposer.org/)
2. Require Klein with `composer require vladdyslav/klein-up`
3. Add the following to your application's main PHP file: `require 'vendor/autoload.php';`

Example
-------

[](#example)

*Hello World* - Obligatory hello world example

```
