PHPackages                             phpactor/phpspec-extension - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. phpactor/phpspec-extension

AbandonedArchivedPhpactor-extension[Testing &amp; Quality](/categories/testing)

phpactor/phpspec-extension
==========================

Integration for Phpspec

0.1.4(5y ago)01.8k[1 issues](https://github.com/phpactor/phpspec-extension/issues)[1 PRs](https://github.com/phpactor/phpspec-extension/pulls)MITPHPPHP ^7.3 || ^8.0

Since Dec 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/phpactor/phpspec-extension)[ Packagist](https://packagist.org/packages/phpactor/phpspec-extension)[ RSS](/packages/phpactor-phpspec-extension/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (8)Versions (7)Used By (0)

PhpSpec Extension
=================

[](#phpspec-extension)

[![CI](https://github.com/phpactor/phpspec-extension/workflows/CI/badge.svg)](https://github.com/phpactor/phpspec-extension/workflows/CI/badge.svg)

Phpspec support for Phpactor.

[![recording](https://user-images.githubusercontent.com/530801/50404106-00ba1b00-079c-11e9-917c-846bb56fdeb2.gif)](https://user-images.githubusercontent.com/530801/50404106-00ba1b00-079c-11e9-917c-846bb56fdeb2.gif)

Features
========

[](#features)

- Suggests subject methods when in spec class.

Todo:

- Add `MethodProphecy` type to method calls on collaborators.
- Add Subject type to return types.
- Adds the `Collaborator` type to collaborators.
- Class generator for class.
- Initialize parameters from `.phpspec.yml`

Installation
============

[](#installation)

```
$ /path/to/your/phpactor extension:install phpactor/phpspec-extension

```

Tips and Tricks
===============

[](#tips-and-tricks)

Test Navigation
---------------

[](#test-navigation)

Phpactor allows you to jump to related files, just add the following [configuration](https://phpactor.github.io/phpactor/configuration.html) to jump from your standard source code to the test:

```
{
    "navigator.destinations": {
        "source": "lib\/Test.php"
        "spec": "spec\/Spec.php"
    },
}
```

See [Jump to related file](https://phpactor.github.io/phpactor/navigation.html#jump-to-or-generate-related-file)for more information.

Contributing
------------

[](#contributing)

This package is open source and welcomes contributions! Feel free to open a pull request on this repository.

Support
-------

[](#support)

- Create an issue on the main [Phpactor](https://github.com/phpactor/phpactor) repository.
- Join the `#phpactor` channel on the Slack [Symfony Devs](https://symfony.com/slack-invite) channel.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~193 days

Total

5

Last Release

1924d ago

PHP version history (2 changes)0.1.1PHP ^7.3

0.1.3PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/24ec7d5d6b7ea54007be5d7b4f43800381cc1e22929f7d2276fba30e497fdfa6?d=identicon)[dantleech](/maintainers/dantleech)

---

Top Contributors

[![dantleech](https://avatars.githubusercontent.com/u/530801?v=4)](https://github.com/dantleech "dantleech (18 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpactor-phpspec-extension/health.svg)

```
[![Health](https://phpackages.com/badges/phpactor-phpspec-extension/health.svg)](https://phpackages.com/packages/phpactor-phpspec-extension)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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