imanghafoori/composer-json
A utility class to read from composer.json file.
Maintainers
Fund package maintenance!
v2.1.0
2025-08-03 23:20 UTC
Requires
- php: ^7.1.3|8.*
- ext-json: *
- symfony/finder: 4.*|5.*|6.*|7.*|8.*|9.*|10.*
Requires (Dev)
- phpunit/phpunit: ~7.0|~8.0|~9.0|~10.0|~11.0
- symfony/var-dumper: ^4.0|^5.0|^6.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT dfb6145c5508cef15c050883052543705a222657
- :Iman Ghafoori <imanghafoori1.woop@gmail.com>
This package is auto-updated.
Last update: 2026-06-22 01:22:25 UTC
README
👁 Tests
👁 Coverage Status
👁 Latest Version on Packagist
👁 StyleCI
👁 Total Downloads
👁 MIT Licensed
This package helps you read data in your composer.json file.
Installation
You can install the package via composer:
composer require imanghafoori/composer-json
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
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
