PHPackages                             actra/yuf - 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. [Framework](/categories/framework)
4. /
5. actra/yuf

ActiveLibrary[Framework](/categories/framework)

actra/yuf
=========

yuf (pronounced "\[jʌf\]" or "\[jʊf\]") - A smart, fast and lightweight php framework with zero dependencies.

v2.1.1(2w ago)0243↓73.2%1MITPHPPHP &gt;=8.5

Since Feb 22Pushed 2w agoCompare

[ Source](https://github.com/Actra-AG/yuf)[ Packagist](https://packagist.org/packages/actra/yuf)[ Docs](https://github.com/Actra-AG/yuf)[ RSS](/packages/actra-yuf/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (4)Versions (50)Used By (1)

yuf - A Smart, Fast, and Lightweight PHP Framework
==================================================

[](#yuf---a-smart-fast-and-lightweight-php-framework)

**yuf** (pronounced "\[jʌf\]" or "\[jʊf\]") is a smart, fast, and lightweight PHP framework designed with a focus on simplicity and performance. It has zero external dependencies, other than the `actra/autoloader` library which is required for all setups.

Key Features
------------

[](#key-features)

- **Extremely Lightweight**: Minimal overhead and fast execution.
- **Zero Dependencies**: Core framework functions without heavy external libraries.
- **Composer Ready**: Easy installation via Packagist.
- **Standalone Support**: Works perfectly without Composer.
- **Forced Autoloading**: Always uses the specialized `actra/autoloader` for maximum performance and control.
- **Built-in Security**: Includes features like CSP (Content Security Policy) nonce support.

Requirements
------------

[](#requirements)

- PHP 8.5 or higher
- Common PHP extensions: `mbstring`, `openssl`, `pdo`, `intl`, `bcmath`, `simplexml`, `dom`, `iconv`, `curl`, `libxml`, `ctype`

### Installation

[](#installation)

Install `yuf` and `actra/autoloader` via Composer or download them manually. Note that `yuf` always requires `actra/autoloader` to be manually initialized.

### Via Composer (Recommended)

[](#via-composer-recommended)

```
composer require actra/yuf
```

### Manual Installation

[](#manual-installation)

1. Download the source code from [GitHub](https://github.com/Actra-AG/yuf).
2. Download `actra/autoloader` () and place it in your project.
3. Reference the `Autoloader.php` when initializing the `Core` class.

Quick Start
-----------

[](#quick-start)

1. Create a `.env.php` file based on `.env.example.php`.
2. Create an `index.php` in your document root based on `index.example.php`.
3. Initialize the Framework Core and provide the path to `Autoloader.php` if not using the default.

REST/API Endpoints
------------------

[](#restapi-endpoints)

`yuf` includes lightweight helpers for building REST-style endpoints without adding external dependencies.

Useful backend/API features include:

- `HttpRequest::getRequestMethod()` returns a typed `RequestMethodEnum`.
- `BaseView::getJsonRequestBody()` reads and validates JSON request bodies.
- `JsonRequestBody` provides typed accessors for required and optional string, integer, float, and array values.
- `BaseView::setSuccessResponseContent()` creates standardized success responses.
- `BaseView::setErrorResponseContent()` creates standardized error responses and can set the HTTP status code.

JSON success responses use this structure:

```
{
  "success": true,
  "data": {}
}
```

JSON error responses use this structure:

```
{
  "success": false,
  "error": {
    "code": 0,
    "message": "Error message"
  }
}
```

Optional additional response data is returned in a top-level `data` property.

Documentation
-------------

[](#documentation)

For more detailed examples, please refer to:

- `.env.example.php`: Configuration examples.
- `index.example.php`: Full usage example with manual autoloader initialization.
- [UPGRADE.md](UPGRADE.md): Guide for developers updating to or working with new versions.

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

---

© 2026 [Actra AG](https://www.actra.ch)

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance96

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

49

Last Release

20d ago

Major Versions

v0.9.0 → v1.0.02026-04-25

v1.7.0 → v2.0.02026-06-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/db110c9aa8b7f41b77d42bb1d3da4d493aa513e9a4f5a49e20169e46ee9c653f?d=identicon)[JayQ1982](/maintainers/JayQ1982)

---

Top Contributors

[![JayQ1982](https://avatars.githubusercontent.com/u/6882691?v=4)](https://github.com/JayQ1982 "JayQ1982 (50 commits)")

---

Tags

phpframeworkfastlightweightsmartactra

### Embed Badge

![Health badge](/badges/actra-yuf/health.svg)

```
[![Health](https://phpackages.com/badges/actra-yuf/health.svg)](https://phpackages.com/packages/actra-yuf)
```

###  Alternatives

[usbac/wolff-framework

Web development made just right

381.2k1](/packages/usbac-wolff-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
