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

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

struktal/struktal-composer-reader
=================================

PHP library to read information from the project's composer.json file

1.0.0(9mo ago)01.0k↓33.3%1MITPHPPHP &gt;=8.2.0

Since Aug 8Pushed 9mo agoCompare

[ Source](https://github.com/Struktal/struktal-composer-reader)[ Packagist](https://packagist.org/packages/struktal/struktal-composer-reader)[ RSS](/packages/struktal-struktal-composer-reader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Struktal-Composer-Reader
========================

[](#struktal-composer-reader)

This is a PHP library that reads metadata from the project's `composer.json` file.

Installation
============

[](#installation)

To install this library, include it in your project using Composer:

```
composer require struktal/struktal-composer-reader
```

Usage
=====

[](#usage)

Before you can use this library, you need to customize a few parameters. You can do this in the startup of your application:

```
\struktal\ComposerReader\ComposerReader::setProjectDirectory("path/to/your/project");
```

Then, you can use the library's features in your code.

Read information from `composer.json`
-------------------------------------

[](#read-information-from-composerjson)

To read information from the `composer.json` file, you can use the `ComposerReader` class:

```
$composerReader = new \struktal\ComposerReader\ComposerReader();
$name = $composerReader->get("name");
$phpVersion = $composerReader->get("require", "php");
```

License
=======

[](#license)

This software is licensed under the MIT license. See the [LICENSE](LICENSE) file for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance58

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

274d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49905418?v=4)[Jens Ostertag](/maintainers/JensOstertag)[@JensOstertag](https://github.com/JensOstertag)

---

Top Contributors

[![JensOstertag](https://avatars.githubusercontent.com/u/49905418?v=4)](https://github.com/JensOstertag "JensOstertag (1 commits)")

---

Tags

router

### Embed Badge

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

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

###  Alternatives

[bramus/router

A lightweight and simple object oriented PHP Router

1.1k458.8k48](/packages/bramus-router)[proai/lumen-annotations

Route and event binding annotations for Laravel Lumen

1012.4k](/packages/proai-lumen-annotations)[miranj/craft-router

Use URL segments as filtering criteria on an entry query.

231.6k](/packages/miranj-craft-router)

PHPackages © 2026

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