klein.php is a fast & flexible router for PHP 5.3+. Flexible regular expression routing (inspired by Sinatra) A set of boilerplate methods for rapidly building web apps. Almost no overhead. Unit tests are a crucial part of developing a routing engine such as Klein. Added features or bug-fixes can have adverse effects that are hard to find without a lot of testing, hence the importance of unit testing. This project uses PHPUnit as its unit testing framework.

Features

  • Flexible regular expression routing
  • A set of boilerplate methods for rapidly building web apps
  • Almost no overhead
  • PHP 5.3.x is required
  • Install Klein using Composer (recommended) or manually
  • Setup URL rewriting so that all requests are handled by index.php

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Klein

Klein Web Site

Other Useful Business Software
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Klein!

Additional Project Details

Programming Language

PHP

Related Categories

PHP HTTP Servers, PHP HTTP Clients

Registered

2023-05-10