PHPackages                             torophp/torophp - 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. [API Development](/categories/api)
4. /
5. torophp/torophp

ActiveLibrary[API Development](/categories/api)

torophp/torophp
===============

Toro is a PHP router for developing RESTful web applications and APIs.

1.2k52.1k↓14.6%169[4 PRs](https://github.com/anandkunal/ToroPHP/pulls)PHP

Since Sep 25Pushed 4y ago94 watchersCompare

[ Source](https://github.com/anandkunal/ToroPHP)[ Packagist](https://packagist.org/packages/torophp/torophp)[ RSS](/packages/torophp-torophp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Toro
====

[](#toro)

Toro is a PHP router for developing RESTful web applications and APIs. It is designed for minimalists who want to get work done.

Quick Links
-----------

[](#quick-links)

- [Official Website](http://toroweb.org)
- [Changelog](https://github.com/anandkunal/ToroPHP/wiki/Changelog)
- [Design Goals](https://github.com/anandkunal/ToroPHP/wiki/Design-Goals)

Features
--------

[](#features)

- RESTful routing using strings, regular expressions, and defined types (`number`, `string`, `alpha`)
- Flexible error handling and callbacks via `ToroHook`
- Intuitive and self-documented core (`Toro.php`)
- Tested with PHP 5.3 and above

"Hello, world"
--------------

[](#hello-world)

The canonical "Hello, world" example:

```
