PHPackages                             evilstudio/composer-parser - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. evilstudio/composer-parser

ActiveProject[PDF &amp; Document Generation](/categories/documents)

evilstudio/composer-parser
==========================

Simple app for parse composer.json file from multiple repositories to one Excel spreadsheet

v2.18.0(1mo ago)010MITPHPPHP &gt;=8.3

Since Apr 2Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/evilprophet/composer-parser)[ Packagist](https://packagist.org/packages/evilstudio/composer-parser)[ RSS](/packages/evilstudio-composer-parser/feed)WikiDiscussions 2.x Synced 1w ago

READMEChangelogDependencies (25)Versions (40)Used By (0)

📦 Composer Parser
=================

[](#-composer-parser)

Introduction
------------

[](#introduction)

Composer Parser is a CLI tool for comparing Composer dependencies across multiple repositories. It collects `composer.json` (optionally `composer.lock`), groups packages by configurable rules, and exports a consolidated report.

✨ Key Features
--------------

[](#-key-features)

- `🔎 Multi-repository parsing`

    - Reads dependency data from many repositories into one report.
- `🧠 Multiple parser modes`

    - `composerJson`
    - `composerJsonAndLock`
    - `composerFull` (includes latest versions via `composer outdated`)
- `🌐 Multiple providers`

    - `gitRepository`
    - `gitlabApiFiles`
    - `gitlabApiArchive`
- `📤 Multiple output writers`

    - `xlsx`
    - `json`
    - `html`
    - `googleSheets`
- `🧩 Configurable grouping and styling`

    - Regex-based package groups
    - Version-based cell styling (used in XLSX and HTML)

📁 Project Structure
-------------------

[](#-project-structure)

```
.
├── bin/             # CLI entrypoint
├── config/          # Parameters and service configuration
├── src/             # Application source code
│   ├── Api/             # Contracts
│   ├── Command/         # CLI commands
│   ├── Exception/       # Domain exceptions
│   ├── Model/           # Data models
│   └── Service/         # App use-cases, parsers, providers, writers, config/report/log services
├── tests/           # Unit and integration tests
└── var/             # Working data (repositories, results, logs)

```

🚀 Quick Start
-------------

[](#-quick-start)

### 1. Clone and install

[](#1-clone-and-install)

```
git clone https://github.com/evilstudio/composer-parser.git
cd composer-parser
composer install
```

### 2. Prepare configuration

[](#2-prepare-configuration)

```
cp config/parameters.yaml.template config/parameters.yaml
```

Set at least:

- `app.config.providerType`
- `app.config.parserType`
- `app.config.writerType` (`xlsx`, `json`, `html`, `googleSheets`)
- `repository.config.repositoryList`
- `writer.config.shared.sheetName` (required)

### 3. Run parser

[](#3-run-parser)

```
bin/console app:run
bin/console app:run -p config/parameters.custom.yaml #To use custom parameters file
```

### 4. Cleanup downloaded repositories

[](#4-cleanup-downloaded-repositories)

```
bin/console app:cleanup
bin/console app:cleanup -p config/parameters.custom.yaml #To use custom parameters file
```

💻 Commands
----------

[](#-commands)

CommandDescription`app:run`Fetches data from configured repositories and writes report`app:cleanup`Removes downloaded repositories⚙️ Writer Configuration
-----------------------

[](#️-writer-configuration)

Common local writer fields:

- `writer.config.local.fileName`
- `writer.config.local.fileDirectory`
- `writer.config.shared.sheetName` (required, used by `xlsx` and `googleSheets`)

Google Sheets writer (`writerType: googleSheets`) requires:

- `writer.config.googleSheets.spreadsheetId`
- `writer.config.googleSheets.serviceAccountJsonPath`

🌐 Google Sheets Setup
---------------------

[](#-google-sheets-setup)

1. Create/open a Google Cloud project.
2. Enable `Google Sheets API` in that project.
3. Create a Service Account and generate a JSON key.
4. Share target spreadsheet with the Service Account email as `Editor`.
5. Set in config:

- `app.config.writerType: googleSheets`
- `writer.config.shared.sheetName`
- `writer.config.googleSheets.spreadsheetId`
- `writer.config.googleSheets.serviceAccountJsonPath`

🧭 Notes
-------

[](#-notes)

- Output file path is built from `writer.config.local.fileDirectory` + `fileName`.
- `{date}` in `fileName` is replaced with current date (`Y-m-d`).
- Errors are logged to `var/log/error.log`.
- `composerFull` requires `composer` available in PATH.
- `gitRepository` provider requires local `git`.
- `xlsx` output requires PHP extensions `ext-zip` and `ext-gd`.

🧪 Testing
---------

[](#-testing)

```
# Run all tests
./vendor/bin/phpunit --testdox
```

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance89

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity79

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

Recently: every ~0 days

Total

40

Last Release

57d ago

Major Versions

v1.0.0 → v2.0.02021-05-24

PHP version history (4 changes)v1.0.0PHP &gt;=7.1

v2.8.2PHP &gt;=7.2

v2.8.5PHP &gt;=8.1

v2.13.2PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1f94e259c38b695cc8df4d2dd4151ca6f282b2fedc57afabbf6af61e27e41ff?d=identicon)[evilprophet](/maintainers/evilprophet)

---

Top Contributors

[![evilprophet](https://avatars.githubusercontent.com/u/9113198?v=4)](https://github.com/evilprophet "evilprophet (46 commits)")

---

Tags

composerparserexcelxlsxlsxspreadsheetgit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/evilstudio-composer-parser/health.svg)

```
[![Health](https://phpackages.com/badges/evilstudio-composer-parser/health.svg)](https://phpackages.com/packages/evilstudio-composer-parser)
```

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

53541.0k3](/packages/jolicode-castor)[avadim/fast-excel-reader

Lightweight and very fast XLSX Excel Spreadsheet Reader in PHP

104608.4k6](/packages/avadim-fast-excel-reader)

PHPackages © 2026

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