# anandkunal/ToroPHP

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

Repository: https://github.com/anandkunal/ToroPHP
Canonical: https://ross.abutalabs.com/products/torophp
Homepage: http://toroweb.org
Language: PHP
License: MIT
License Family: permissive
Last push: 2021-12-31T21:49:47+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6163, "days_push": 1706, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1155, forks 169 (observed 2026-08-28T04:03:47.890007+00:00)

## What it is
ToroPHP is a small PHP routing library for building RESTful web applications and APIs. It maps URL patterns to handler classes whose methods are dispatched by HTTP verb, with support for typed route stubs, regex routes, XHR-specific handlers, and lifecycle hooks.

## Use cases
- build a restful api in php
- route http requests to handler classes
- create a lightweight php web app without a full framework
- handle get post put delete requests with clean url routing
- dispatch json xhr requests separately in php
- add a simple router to a legacy php project

## When to choose
- you want a tiny, single-file router with minimal dependencies
- you are building a small REST API or microservice in PHP
- you prefer handler-class routing modeled after Tornado

## When to avoid
- you need a full-featured framework with ORM, templating, and auth
- you want modern middleware ecosystems, PSR-7/PSR-15 support, or active development
- your project requires PHP features beyond the library's minimal scope

## Facets
- artifact type: library
- maturity: maintenance
- function: routing, web-framework, http-server, middleware
- domain: web-development, backend, apis
- platform: php
- tags: rest, microframework, router, minimalist

## Member repositories
- anandkunal/ToroPHP (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:47.890007+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:32:11.762116+00:00, confidence not recorded.
  - readme: https://github.com/anandkunal/ToroPHP (fetched 2026-08-28T04:03:47.890007+00:00, sha e89879733ee7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
