PHPackages                             silvanite/composer-reader - 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. silvanite/composer-reader

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

silvanite/composer-reader
=========================

Read composer.json files using a fluent api.

v1.0.1(7y ago)126MITPHPPHP ^7.0.0

Since Nov 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Silvanite/composer-reader)[ Packagist](https://packagist.org/packages/silvanite/composer-reader)[ RSS](/packages/silvanite-composer-reader/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Composer Reader
===============

[](#composer-reader)

Read composer.json files using a fluent api.

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

[](#installation)

`composer require silvanite/composer-reader`

Usage
-----

[](#usage)

Check if a package is installed. Defaults to look for `composer.json` in the current working directory.

```
$installed = Composer::read()->has('my/package');
```

If the file is in a different location, specify the filename.

```
$installed = Composer::read('./path/to/composer.json')->has('my/package');
```

The require section is checked by default, but you can define which section to check

```
$installed = Composer::read()->require()->has('my/package');
$installedDev = Composer::read()->requireDev()->has('my/package');
```

Check the required version of a package. Will return the full version string.

```
$version = Composer::read()->version('my/package');
```

Support
-------

[](#support)

If you require any support please contact me on [Twitter](https://twitter.com/m2de_io) or open an issue on this repository.

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

2

Last Release

2734d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/344a7327cff0099b702cc9aa63e660e482734bf902875114cf56adb7f359b631?d=identicon)[Silvanite](/maintainers/Silvanite)

---

Top Contributors

[![m2de](https://avatars.githubusercontent.com/u/17720020?v=4)](https://github.com/m2de "m2de (8 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/silvanite-composer-reader/health.svg)

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

###  Alternatives

[wapmorgan/morphos

A morphological solution for Russian and English language written completely in PHP. Provides classes to inflect personal names, geographical names, decline and pluralize nouns, generate cardinal and ordinal numerals, spell out money amounts and time.

8351.3M7](/packages/wapmorgan-morphos)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.4k423.9k30](/packages/mcp-sdk)[hackzilla/password-generator

Password Generator Library

3035.2M15](/packages/hackzilla-password-generator)[alibaba/nacos

阿里巴巴nacos配置中心php客户端

19340.8k1](/packages/alibaba-nacos)[bvdputte/kirby-fingerprint

Cache-busting utility to fingerprint assets (JS/CSS) in Kirby 3

1610.0k](/packages/bvdputte-kirby-fingerprint)

PHPackages © 2026

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