# laruence/yaf

Fast php framework written in c, built in php extension

Repository: https://github.com/laruence/yaf
Canonical: https://ross.abutalabs.com/products/yaf
Homepage: http://pecl.php.net/package/yaf
Language: C
License: NOASSERTION
License Family: other
Topics: yaf, php, c, php-framework
Last push: 2026-08-18T15:51:30+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 66, longevity 100
- inputs: {"age_days": 5377, "days_push": 15, "days_rel": 15, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4512, forks 1360 (observed 2026-08-28T04:08:52.611004+00:00)

## What it is
Yaf (Yet Another Framework) is a high-performance PHP MVC framework written in C and distributed as a compiled PHP extension via PECL/PIE. It provides routing, dispatching, autoloading, plugins, and a lightweight view layer with per-request overhead measured in microseconds.

## Use cases
- build a high-traffic PHP web application with minimal framework overhead
- run an MVC framework inside long-lived PHP runtimes like Swoole or RoadRunner
- avoid Composer class-loading costs on every request
- get a fast router and dispatcher implemented in C
- develop a PHP web app without loading framework PHP files

## When to choose
- you need the lowest possible per-request framework overhead in PHP
- you run long-lived PHP services and want a clean dispatch cycle per request
- you want an MVC framework installable as a PECL/PIE extension
- you prefer C-level performance for routing and autoloading

## When to avoid
- you want a pure-PHP framework with Composer-based tooling and a large package ecosystem
- you cannot install PHP extensions on your hosting environment
- you need rich built-in features like ORM, queues, or scaffolding that Yaf does not provide
- your team needs extensive third-party documentation and community packages

## Facets
- artifact type: framework
- maturity: stable
- function: web-framework, routing, middleware, plugin-system, templating
- domain: web-development, backend, developer-tools
- platform: windows, php
- tags: php-extension, mvc, c-framework, pecl, high-performance, swoole, linux, macos, web-server

## Member repositories
- laruence/yaf (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:52.611004+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-29T18:20:20.046446+00:00, confidence not recorded.
  - readme: https://github.com/laruence/yaf (fetched 2026-08-28T04:08:52.611004+00:00, sha 16d6028d3e6a)
  - homepage: http://pecl.php.net/package/yaf (fetched 2026-08-29T09:06:22.704335+00:00, sha b6502d08f201)
  - site_page: http://pecl.php.net/package-changelog.php?package=yaf&release=3.3.3 (fetched 2026-08-29T09:06:22.728836+00:00, sha 71a569f268f9)
  - site_page: http://pecl.php.net/package-changelog.php?package=yaf&release=3.3.6 (fetched 2026-08-29T09:06:22.722288+00:00, sha 71a569f268f9)
  - site_page: http://pecl.php.net/package-changelog.php?package=yaf&release=3.3.5 (fetched 2026-08-29T09:06:22.724299+00:00, sha 71a569f268f9)
  - site_page: http://pecl.php.net/package-changelog.php?package=yaf&release=3.3.4 (fetched 2026-08-29T09:06:22.726789+00:00, sha 71a569f268f9)
  - site_page: http://pecl.php.net/package-changelog.php?package=yaf (fetched 2026-08-29T09:06:22.713675+00:00, sha 71a569f268f9)
  - site_page: http://www.php.net/manual/book.yaf.php (fetched 2026-08-29T09:06:22.716060+00:00, sha b5f831a26c7d)
  - site_page: http://pecl.php.net/package-changelog.php?package=yaf&release=3.3.8 (fetched 2026-08-29T09:06:22.718315+00:00, sha 71a569f268f9)
  - site_page: http://pecl.php.net/package-changelog.php?package=yaf&release=3.3.7 (fetched 2026-08-29T09:06:22.720371+00:00, sha 71a569f268f9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
