PHPackages                             robertboloc/zf2-components-list-generator - 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. robertboloc/zf2-components-list-generator

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

robertboloc/zf2-components-list-generator
=========================================

Generate a list of Zend Framework 2 components used by a library

v1.0.0(10y ago)1528.1k↓50%1MITPHPCI failing

Since Apr 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/robertboloc/zf2-components-list-generator)[ Packagist](https://packagist.org/packages/robertboloc/zf2-components-list-generator)[ Docs](https://github.com/robertboloc/https://github.com/robertboloc/zf2-components-list-generator)[ RSS](/packages/robertboloc-zf2-components-list-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (1)

zf2-components-list-generator
=============================

[](#zf2-components-list-generator)

[![Build Status](https://camo.githubusercontent.com/fc5c9c721e489c873fabdfe1d3f5fc6134719d3ba018d8061e4926d68f14e384/68747470733a2f2f7472617669732d63692e6f72672f726f62657274626f6c6f632f7a66322d636f6d706f6e656e74732d6c6973742d67656e657261746f722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/robertboloc/zf2-components-list-generator)[![Total Downloads](https://camo.githubusercontent.com/4f2bcbdf430fe98fd4e334d314ce0e7ecfc3894a11a2d873166b9892c23d6a42/68747470733a2f2f706f7365722e707567782e6f72672f726f62657274626f6c6f632f7a66322d636f6d706f6e656e74732d6c6973742d67656e657261746f722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/robertboloc/zf2-components-list-generator)[![License](https://camo.githubusercontent.com/8659b8f56de7cce00827b0710a67cc8117a59a123bd2dfe0a2c4372f6c93b013/68747470733a2f2f706f7365722e707567782e6f72672f726f62657274626f6c6f632f7a66322d636f6d706f6e656e74732d6c6973742d67656e657261746f722f6c6963656e73652e706e67)](https://packagist.org/packages/robertboloc/zf2-components-list-generator)

Generates a list of Zend Framework 2 components used by a project.

In your `composer.json` file instead of using `"zendframework/zendframework" : "2.5.*"` and so requiring the whole framework, use this script to get a list of used components, and require only those. Better yet, specify your composer file and the script will replace your `"zendframework/zendframework" : "2.5.*"` with the components used by your application.

For more info on why you should do this in your module/application read [this blog post](http://www.michaelgallego.fr/blog/2013/01/21/some-tips-to-write-better-zend-framework-2-modules/#only-set-dependencies-on-what-you-require).

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Roadmap](#roadmap)

Installation
------------

[](#installation)

1. Add this package to your `composer.json` file, in the `require-dev` section

```
    {
        "require-dev": {
            "robertboloc/zf2-components-list-generator": "dev-master"
        }
    }
```

2. Run `composer update`

This will install the script into `vendor/bin/zf2_components_list_generator.php`

Usage
-----

[](#usage)

Execute the CLI script providing some/all of the following options :

**--help | -h** Get usage information.
**--project | -p** Path of the project to be scanned.
**--composer | -c** Path to the composer.json file to be updated. If not specified the output will be printed to the standard output.
**--version | -v** Use a specific version for the output.

For example calling the script using only the `-p` option:

```
php vendor/bin/zf2_components_list_generator.php -p /projects/MyProject/
```

Will output something like:

```
Replace "zendframework/zendframework" in your composer.json file with :
"zendframework/zend-mvc": "2.5.*",
"zendframework/zend-form": "2.5.*",
"zendframework/zend-db": "2.5.*",
"zendframework/zend-inputfilter": "2.5.*",
"zendframework/zend-view": "2.5.*",
"zendframework/zend-servicemanager": "2.5.*",
"zendframework/zend-loader": "2.5.*",
"zendframework/zend-stdlib": "2.5.*"
```

You can copy and paste this information directly into your composer file. If the `-c` option was used, the composer file will be updated automatically and the message will be :

```
/projects/MyProject/composer.json updated
```

Roadmap
-------

[](#roadmap)

- Detect canonicalized components

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 93.1% 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

Unknown

Total

1

Last Release

3667d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4eb4181877cf183f0ccc0ac9a272d767a6da933357fc4af0113d49a099bb3c76?d=identicon)[robertboloc](/maintainers/robertboloc)

---

Top Contributors

[![robertmarsal](https://avatars.githubusercontent.com/u/507871?v=4)](https://github.com/robertmarsal "robertmarsal (27 commits)")[![acelaya](https://avatars.githubusercontent.com/u/2719332?v=4)](https://github.com/acelaya "acelaya (1 commits)")[![leodido](https://avatars.githubusercontent.com/u/120051?v=4)](https://github.com/leodido "leodido (1 commits)")

---

Tags

zf2zf2-componentscomponentsgeneratorzf2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/robertboloc-zf2-components-list-generator/health.svg)

```
[![Health](https://phpackages.com/badges/robertboloc-zf2-components-list-generator/health.svg)](https://phpackages.com/packages/robertboloc-zf2-components-list-generator)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M567](/packages/symfony-maker-bundle)[simplesoftwareio/simple-qrcode

Simple QrCode is a QR code generator made for Laravel.

2.9k27.6M92](/packages/simplesoftwareio-simple-qrcode)[knplabs/knp-components

Knplabs component library

77343.6M46](/packages/knplabs-knp-components)[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[league/uri-components

URI components manipulation library

31932.3M67](/packages/league-uri-components)[okipa/laravel-form-components

Ready-to-use and customizable form components.

198.0k1](/packages/okipa-laravel-form-components)

PHPackages © 2026

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