# c9s/Pux

Pux is a fast PHP Router and includes out-of-box controller tools

Repository: https://github.com/c9s/Pux
Canonical: https://ross.abutalabs.com/products/pux
Language: C
License: MIT
License Family: permissive
Last push: 2023-03-28T09:46:00+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": 4625, "days_push": 1254, "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 1263, forks 80 (observed 2026-08-28T04:04:10.343712+00:00)

## What it is
Pux is a high-performance PHP routing library with an optional C extension, offering Sinatra-style PCRE patterns, controller auto-mounting, annotations, and request constraints (method, domain, HTTPS). It also ships RESTful route builder helpers for mounting resource controllers.

## Use cases
- route http requests in a php application
- build a fast php router with low memory footprint
- mount controllers automatically without specifying each action path
- define restful resource routes in php
- add request method and https conditions to routes

## When to choose
- you need very fast routing in PHP with minimal overhead
- you want Sinatra-style patterns and controller auto-mounting
- you prefer a lightweight router over a full framework

## When to avoid
- you need a full-featured web framework with templating and ORM
- your project requires modern PHP versions and active development
- you cannot install PHP C extensions and need maximum speed

## Facets
- artifact type: library
- maturity: maintenance
- function: routing, web-framework, middleware
- domain: web-development, backend, apis, performance
- platform: php
- tags: php-router, sinatra-style-routes, controller-mounting, restful-routing, c-extension, low-overhead, linux, macos, web-server

## Member repositories
- c9s/Pux (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:10.343712+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-30T05:04:07.122933+00:00, confidence not recorded.
  - readme: https://github.com/c9s/Pux (fetched 2026-08-28T04:04:10.343712+00:00, sha db7d12b96f6f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
