PHPackages                             phpixie/sylph - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phpixie/sylph

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phpixie/sylph
=============

Stubber

23.8k↓50%PHP

Since May 2Pushed 13y ago1 watchersCompare

[ Source](https://github.com/dracony/Sylph)[ Packagist](https://packagist.org/packages/phpixie/sylph)[ RSS](/packages/phpixie-sylph/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sylph
=====

[](#sylph)

A simple and easy to use array to class stubber. Greatly improves the speed of writing class stubs. Here is a quick exxample:

```
    $this->sylph = new \PHPixie\Sylph();
    $flowers = 7; //Will use it in an anonymous method later on
    $fairy = $this->sylph->cast(array(
        'name' => 'Tinkerbell',
        'likes' => array(
            'flying'  => true,
            'dancing' => true
        ),
        'pick_flowers' => function($picked) use($flowers){
            return $picked + $flowers;
        },
        'friend' => $this->sylph->cast(array(
            'name' => 'Trixie'
        ))
    ));

    $this->assertEquals('Tinkerbell', $fairy->name);
    $this->assertEquals(true, $fairy->likes['flying']);
    $this->assertEquals(true, $fairy->likes['dancing']);
    $this->assertEquals(10, $fairy->pick_flowers(3));
    $this->assertEquals('Trixie', $fairy->friend->name);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fd2ee997c779cf774247d3d4cde7d90491484f817032aab6dbc314857973b36?d=identicon)[dracony](/maintainers/dracony)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/phpixie-sylph/health.svg)

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

###  Alternatives

[magento-hackathon/magento-composer-installer

Composer installer for Magento modules

214757.6k374](/packages/magento-hackathon-magento-composer-installer)[watson/breadcrumbs

Breadcrumbs made easy for Laravel.

4542.9k](/packages/watson-breadcrumbs)[faonni/module-customer-create-address

Show Address Fields in Customer Registration Form.

189.0k](/packages/faonni-module-customer-create-address)[chasegiunta/scss

Compiler for SCSS

148.6k1](/packages/chasegiunta-scss)

PHPackages © 2026

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