PHPackages                             nagno/phpspec-bootstrap-magento2 - 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. nagno/phpspec-bootstrap-magento2

ActiveLibrary[Testing &amp; Quality](/categories/testing)

nagno/phpspec-bootstrap-magento2
================================

Bootstraps Mage2 for phpspec before the tests are running so the dinamically generated classes will work

3.1.0(6y ago)570.2k3MITPHP

Since Aug 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nagno/phpspec-bootstrap-magento2)[ Packagist](https://packagist.org/packages/nagno/phpspec-bootstrap-magento2)[ RSS](/packages/nagno-phpspec-bootstrap-magento2/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (8)Used By (0)

Compatibility
=============

[](#compatibility)

You need at least Magento 2.3 to use this version of the tool.

Purpose of the tools
====================

[](#purpose-of-the-tools)

This tool bootstraps Magento2 with it's object manager factory, so every new dynamic class request will go through it and it will be created by Magento before phpspec tries to use it

Installation instructions
=========================

[](#installation-instructions)

Add the repository into your composer.json file using the following command:

```
composer config repositories.nagno git https://github.com/nagno/phpspec-bootstrap-magento2.git
```

Install the package:

```
composer require nagno/phpspec-bootstrap-magento2 --dev
```

Add these lines to phpspec.yml:

```
extensions:
    Nagno\Phpspec\BootstrapMagento2\Bootstrap: ~
```

Compatibilty with PhpSpec
=========================

[](#compatibilty-with-phpspec)

This tool is compatible with PhpSpec 2, 4, 5 and 6.

PhpSpec VersionBootstrap Magento2 Version2.x1.x4.x2.x5.x3.x6.x3.x

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~282 days

Total

7

Last Release

2357d ago

Major Versions

1.0.x-dev → 2.0.02017-09-06

2.0.0 → 3.0.02019-04-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/23bc1bddd75e0324f6e65d550a2891cffedd01cc82e54c5498d63420719b8af1?d=identicon)[nagno](/maintainers/nagno)

### Embed Badge

![Health badge](/badges/nagno-phpspec-bootstrap-magento2/health.svg)

```
[![Health](https://phpackages.com/badges/nagno-phpspec-bootstrap-magento2/health.svg)](https://phpackages.com/packages/nagno-phpspec-bootstrap-magento2)
```

###  Alternatives

[bossa/phpspec2-expect

Helper that decorates any SUS with a phpspec lazy object wrapper

741.8M87](/packages/bossa-phpspec2-expect)[benconstable/phpspec-laravel

Test your Laravel applications with PhpSpec

144347.1k15](/packages/benconstable-phpspec-laravel)[phpspec/nyan-formatters

PHPSpec Nyan Formatter Extension

77239.9k22](/packages/phpspec-nyan-formatters)[akeneo/phpspec-skip-example-extension

Skip your PhpSpec examples through annotations

34978.5k11](/packages/akeneo-phpspec-skip-example-extension)[friends-of-phpspec/phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests

202.6M124](/packages/friends-of-phpspec-phpspec-code-coverage)[ciaranmcnulty/phpspec-typehintedmethods

Extension for phpspec to enhance generated methods

3089.3k31](/packages/ciaranmcnulty-phpspec-typehintedmethods)

PHPackages © 2026

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