{"id":18436595,"url":"https://github.com/xdevor/composer-parser","last_synced_at":"2026-04-30T10:08:52.484Z","repository":{"id":147208798,"uuid":"618623891","full_name":"xdevor/composer-parser","owner":"xdevor","description":"A parser that can parse all the installed PHP packages composer.json file in your project","archived":false,"fork":false,"pushed_at":"2023-04-12T11:50:43.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T10:59:11.740Z","etag":null,"topics":["composer","composer-packages","installed-json","parser","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/xdevor/composer-parser","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xdevor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-24T22:14:41.000Z","updated_at":"2023-03-30T03:50:57.000Z","dependencies_parsed_at":"2023-07-09T13:01:45.415Z","dependency_job_id":null,"html_url":"https://github.com/xdevor/composer-parser","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdevor%2Fcomposer-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdevor%2Fcomposer-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdevor%2Fcomposer-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdevor%2Fcomposer-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xdevor","download_url":"https://codeload.github.com/xdevor/composer-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868802,"owners_count":21174757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","composer-packages","installed-json","parser","php"],"created_at":"2024-11-06T06:12:12.212Z","updated_at":"2026-04-30T10:08:47.445Z","avatar_url":"https://github.com/xdevor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ComposerParser\n\nComposerParser is a PHP package that allows you to parse all the installed PHP packages composer.json file. If you have ever worked with PHP packages, you know how important composer.json is. It describes the package's dependencies, version constraints, and other metadata like providers of laravel app. However, parsing all of the composer.json files in a project can be a tedious and time-consuming task, especially if you are working with multiple packages.\n\nWith ComposerParser, you can easily extract information from all of the composer.json files in your project.\n\n\u003cp align=\"left\"\u003e\n    \u003ca href=\"https://github.com/xdevor/composer-parser/actions\"\u003e\u003cimg src=\"https://github.com/xdevor/composer-parser/actions/workflows/tests.yml/badge.svg\" alt=\"Test Status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/xdevor/composer-parser\"\u003e\u003cimg src=\"https://poser.pugx.org/xdevor/composer-parser/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/xdevor/composer-parser\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/xdevor/composer-parser.svg?v=1.5.0\" alt=\"packagist\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/xdevor/composer-parser\"\u003e\u003cimg src=\"https://poser.pugx.org/xdevor/composer-parser/license.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\nRequire this package with composer:\n```bash\ncomposer require xdevor/composer-parser\n```\n\n## Features\n- Supports parsing all installed PHP packages' composer.json files in your project\n- Can easily extract specific information of nested composer.json files in your project\n\n## Usage\n\n1. parse specific installed package by key\n```php\n...\nuse Xdevor\\ComposerParser\\Parser;\n...\n(new Parser())-\u003eparse('the/package', 'name'); // return name of the package\n(new Parser())-\u003eparse('the/package', 'authors.0.name'); // return the first author name\n(new Parser())-\u003eparse('the/package', 'not_exist_key'); // return null if key not exist\n(new Parser())-\u003eparse('the/package', 'not_exist_key', 'default'); // return 'default' if key not exist\n(new Parser(__DIR__ . '/customize/path/installed.json'))-\u003eparse('the/package', 'name'); // parse customize path\n```\n\n2. parse all installed package by key\n```php\n...\nuse Xdevor\\ComposerParser\\Parser;\n...\n(new Parser())-\u003eparseAll($key = 'name'); // return name of all installed PHP packages\n(new Parser())-\u003eparseAll($key = 'extra.laravel.providers'); // return providers of all installed PHP packages\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Code of Conduct\n\nIn order to ensure that the php community is welcoming to all, please review and abide by the [Code of Conduct](CODE_OF_CONDUCT.md).\n\n## Security Vulnerabilities\n\nPlease review [our security policy](SECURITY.md) on how to report security vulnerabilities.\n\n## License\n\nComposerParser is open-sourced software licensed under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdevor%2Fcomposer-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdevor%2Fcomposer-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdevor%2Fcomposer-parser/lists"}