PHPackages                             silawrenc/yocto - 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. silawrenc/yocto

ActiveLibrary[Framework](/categories/framework)

silawrenc/yocto
===============

A really, really, really, really, really, really, really, really small php framework

0.0.1(10y ago)213ISCPHPPHP &gt;=5.5

Since Apr 28Pushed 10y ago1 watchersCompare

[ Source](https://github.com/silawrenc/yocto)[ Packagist](https://packagist.org/packages/silawrenc/yocto)[ RSS](/packages/silawrenc-yocto/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Yocto
=====

[](#yocto)

[![Master branch build status](https://camo.githubusercontent.com/a1cf70cf0e45f69e8ad89a6132312d3484c1c8541e5472a94a1a7d0ba69ba0f7/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f73696c617772656e632f796f63746f2f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/silawrenc/yocto)[![PHP ~5.5](https://camo.githubusercontent.com/2b45bc7baa80dd46370fe19fb79c52ed215f1c0f4df6e93c45fe814108112399/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d7e352e352d3838393242462e7376673f7374796c653d666c6174)](http://php.net)[![Published version](https://camo.githubusercontent.com/cd673a6319ab95f6641d8536b72a80f93441904390eee2db91e54733a6e0405a/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696c617772656e632f796f63746f2e7376673f7374796c653d666c6174)](https://packagist.org/packages/silawrenc/yocto)[![ISC Licensed](https://camo.githubusercontent.com/9dd52154f0a6d34e06ebddee1b5e387da2990247d19756a9b3664fdd27f95126/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73696c617772656e632f796f63746f2e7376673f7374796c653d666c6174)](LICENSE)

**Yocto** is a tiny, stack-based php app framework that acts as nothing more than a wrapper for whichever components you choose. A yocto app instance lets you build a (FIFO) stack of callables, each of which gets called with the app instance as a sole argument. The app instance is constructed with a callback that handles, or delegates service resolution.

The easiest way to install Yocto is via [Composer](https://packagist.org/packages/silawrenc/yocto).

```
{
    "require": {
        "silawrenc/yocto": "*"
    }
}
```

API
---

[](#api)

Here's a quick example that showcases the API.

```
// 1. construct an instance passing in a callback for service resolution
$app = new Yocto([$container, 'get']);

// 2. add callbacks to the stack (FIFO)
$app->add(function ($app) {
    // returning false inside a callback would ensure no further callbacks are executed
    return !$app->get('auth')->isAuthenticated();
});

$app->add(function () {
    echo 'Hello world';
});

// 3. kick things off
$app->run();
// ...outputs hello world iff isAuthenticated is true
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3715d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3692872?v=4)[Simon Lawrence](/maintainers/silawrenc)[@silawrenc](https://github.com/silawrenc)

---

Top Contributors

[![silawrenc](https://avatars.githubusercontent.com/u/3692872?v=4)](https://github.com/silawrenc "silawrenc (3 commits)")

---

Tags

frameworkstackmicro-framework

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/silawrenc-yocto/health.svg)

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

PHPackages © 2026

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