PHPackages                             ptbfw/initializer - 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. ptbfw/initializer

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

ptbfw/initializer
=================

2.0.3(9y ago)172MITPHPPHP &gt;=5.4

Since Jan 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ptbfw/Initializer)[ Packagist](https://packagist.org/packages/ptbfw/initializer)[ Docs](https://github.com/ptbfw/Initializer)[ RSS](/packages/ptbfw-initializer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

Compatible with behat v3

[![SensioLabsInsight](https://camo.githubusercontent.com/5dccd9dafcdfca767e051a6635d1cb8dd3d38081833a2b1fe50b9de2c66812cd/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38396438333938322d633136632d343764662d386633632d3162343064363632316136342f6269672e706e67)](https://insight.sensiolabs.com/projects/89d83982-c16c-47df-8f3c-1b40d6621a64)

Usage:

```
default:
    extensions:
      Ptbfw\Initializer\Extension:
            resetters:
                {servicename}:
                    type: {executer type}
                    {executer Options}
                {SecondServiceName}:
                    type: {executer type}
                    {executer Options}

```

Example behat.yml config:

```
default:
    extensions:
      Ptbfw\Initializer\Extension:
            resetters:
                test:
                  type: 'Executer'
                  commands:
                    - "ls"
                    - "whoami"
            local_service:
                type: 'mysql'
                host: 'localhost'
                user: 'behat'
                password: '1'
                database: 'behat'
                port: 3306
                directory: 'local'
                init_command: 'SET NAMES "UTF8"'
            local_service_api:
                type: 'mysql'
                host: 'localhost'
                user: 'behat2'
                password: '1'
                database: 'behatTwo'
                directories:
                    - 'local_service_api'
                    - 'local_service'

```

Types
-----

[](#types)

### Mysql

[](#mysql)

**directory(ies)** is relative from %features%/bootstrap/database/
If **directory** start with `/` then path is treated as absolute. If both **directory** and **directories** are provided, **directory** is merged in **directories**### Executer

[](#executer)

**ls** and **whoami** are command witch are executed before every scenario. You can use this for apache restart, moving files, clearing cache etc.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Recently: every ~147 days

Total

7

Last Release

3543d ago

Major Versions

1.0.0.x-dev → 2.0.02015-01-20

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4956cf9ec1a3c884260464c59f06ab8be2befe49fead489b63963b33cb441ace?d=identicon)[po\_taka](/maintainers/po_taka)

---

Top Contributors

[![angelk](https://avatars.githubusercontent.com/u/1329009?v=4)](https://github.com/angelk "angelk (32 commits)")

---

Tags

extension

### Embed Badge

![Health badge](/badges/ptbfw-initializer/health.svg)

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

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[bnomei/autoloader-for-kirby

Helper to automatically load various Kirby extensions in a plugin

185.7k2](/packages/bnomei-autoloader-for-kirby)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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