PHPackages                             joeforshaw/speckl - 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. joeforshaw/speckl

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

joeforshaw/speckl
=================

044PHP

Since Aug 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/joeforshaw/speckl)[ Packagist](https://packagist.org/packages/joeforshaw/speckl)[ RSS](/packages/joeforshaw-speckl/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Speckl
======

[](#speckl)

Speckl is a PHP testing framework that provides the same elegant structure as Mocha, Jest and RSpec (to name a few). It provides a BDD-oriented `describe`/`it` interface that allows you to eloquently articulate what you're looking to test.

Example
-------

[](#example)

```
class Dog {
  public $isHappy;

  public function isGood() {
    return true;
  }

  public function tailIsWagging() {
    return $this->isHappy;
  }
}

describe(Dog::class, function() {
  beforeEach(function() {
    $this->dog = new Dog();
  });

  context('when the dog is happy', function() {
    it("wags it's tail", function() {
      $this->dog->isHappy = true;
      expect($this->dog->tailIsWagging())->to->equal(true);
    });
  });

  it('is a good doggo', function() {
    expect($this->dog->isGood())->to->equal(true);
  });

  it('is a bad doggo', function() {
    expect($this->dog->isGood())->to->equal(false);
  });
});
```

Features
--------

[](#features)

### Defining a test

[](#defining-a-test)

### Contexts

[](#contexts)

### Test lifecyles

[](#test-lifecyles)

### Sharing code

[](#sharing-code)

Roadmap
-------

[](#roadmap)

- Better documentation

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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/cd395bee7c45e02dea4e05f205916b359d00fa4269df9527ec44655fce56de4c?d=identicon)[joeforshaw](/maintainers/joeforshaw)

---

Top Contributors

[![joeforshaw](https://avatars.githubusercontent.com/u/2829655?v=4)](https://github.com/joeforshaw "joeforshaw (137 commits)")

### Embed Badge

![Health badge](/badges/joeforshaw-speckl/health.svg)

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

PHPackages © 2026

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