PHPackages                             imanghafoori/composer-json - 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. imanghafoori/composer-json

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

imanghafoori/composer-json
==========================

A utility class to read from composer.json file.

v2.1.0(9mo ago)15315.2k—10%1[3 PRs](https://github.com/imanghafoori1/composer-json/pulls)4MITPHPPHP ^7.1.3|8.\*CI passing

Since Dec 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/imanghafoori1/composer-json)[ Packagist](https://packagist.org/packages/imanghafoori/composer-json)[ Docs](https://github.com/imanghafoori1/composer-json)[ GitHub Sponsors](https://github.com/:vendor_name)[ RSS](/packages/imanghafoori-composer-json/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (29)Used By (4)

Composer.json Reader
====================

[](#composerjson-reader)

[![Tests](https://camo.githubusercontent.com/df00527c38159ba3690aba2ef371f1b60737ed0fb4c89952cb67b08a9aea638c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f696d616e676861666f6f7269312f636f6d706f7365722d6a736f6e2f72756e2d74657374732d706870756e69742e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/imanghafoori1/composer-json/actions/workflows/run-tests-phpunit.yml)[![Coverage Status](https://camo.githubusercontent.com/886550b57b637a779a35ada294069a3c2aea3e7a5776119fd2505f14126ef0d2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f696d616e676861666f6f7269312f636f6d706f7365722d6a736f6e2f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/imanghafoori1/composer-json?branch=main)[![Latest Version on Packagist](https://camo.githubusercontent.com/243b03ac0dd749cb960c56a0514a06bc3cadc8808186b4ed64a4b73387e2e621/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696d616e676861666f6f72692f636f6d706f7365722d6a736f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/imanghafoori/composer-json)[![StyleCI](https://camo.githubusercontent.com/d88f0dd6724b1863c3089b4a43738a4ebf028d0d9243107d45de2131a783210d/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3538313839343131352f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/581894115?branch=main)[![Total Downloads](https://camo.githubusercontent.com/c8e836f547f20c20b2182848afe6d6671a80e40ffdf68ae5e4254da202500bc3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d616e676861666f6f72692f636f6d706f7365722d6a736f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/imanghafoori/composer-json)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package helps you read data in your composer.json file.

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

[](#installation)

You can install the package via composer:

```
composer require imanghafoori/composer-json
```

Usage
-----

[](#usage)

You have to pass the absolute path to the composer.json file to the make method.

```
$composer = \ImanGhafoori\ComposerJson\ComposerJson::make(__DIR__);
```

Then you will have access to a handful of methods.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Iman Ghafoori](https://github.com/imanghafoori1)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance75

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.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

Every ~39 days

Recently: every ~22 days

Total

25

Last Release

288d ago

Major Versions

v1.0.18 → v2.0.02025-03-10

v1.0.19 → v2.0.12025-05-07

PHP version history (2 changes)v1.0.0PHP 7.\*|8.\*

v1.0.5PHP ^7.1.3|8.\*

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6961695?v=4)[Iman](/maintainers/imanghafoori1)[@imanghafoori1](https://github.com/imanghafoori1)

---

Top Contributors

[![imanghafoori1](https://avatars.githubusercontent.com/u/6961695?v=4)](https://github.com/imanghafoori1 "imanghafoori1 (51 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")

---

Tags

composer.json

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/imanghafoori-composer-json/health.svg)

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

###  Alternatives

[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[illuminate/session

The Illuminate Session package.

9937.4M753](/packages/illuminate-session)[balbuf/composer-git-merge-driver

Custom git merge driver to minimize merge conflicts in composer.json and composer.lock files.

137268.0k](/packages/balbuf-composer-git-merge-driver)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

96374.6k23](/packages/friendsoftypo3-content-blocks)

PHPackages © 2026

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