{"id":22296739,"url":"https://github.com/webklex/composer-info","last_synced_at":"2025-07-05T13:37:49.509Z","repository":{"id":62547932,"uuid":"303540925","full_name":"Webklex/composer-info","owner":"Webklex","description":"Access the current details of your composer.lock file.","archived":false,"fork":false,"pushed_at":"2020-10-13T00:02:26.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T18:20:38.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Webklex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-12T23:57:27.000Z","updated_at":"2020-10-13T00:21:48.000Z","dependencies_parsed_at":"2022-11-02T22:30:32.332Z","dependency_job_id":null,"html_url":"https://github.com/Webklex/composer-info","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fcomposer-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fcomposer-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fcomposer-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fcomposer-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Webklex","download_url":"https://codeload.github.com/Webklex/composer-info/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245556961,"owners_count":20634888,"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":[],"created_at":"2024-12-03T17:47:28.778Z","updated_at":"2025-03-25T22:40:57.934Z","avatar_url":"https://github.com/Webklex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Composer Info\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]][link-license]\n[![Build Status][ico-build]][link-scrutinizer] \n[![Total Downloads][ico-downloads]][link-downloads]\n[![Hits][ico-hits]][link-hits]\n\n## Description\nAccess the current details of your composer.lock file.\n\n\n## Table of Contents\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n    - [Basic usage example](#basic-usage-example)\n- [Support](#support)\n- [Documentation](#documentation)\n  - [ComposerInfo::class](#composerinfoclass)\n- [Security](#security)\n- [Credits](#credits)\n- [License](#license)\n\n\n## Installation\n1.) Now install the `composer-info` package by running the following command:\n```shell script\ncomposer require webklex/composer-info\n```\n\n## Configuration\n\nDetailed [config/composer-info.php](src/config/composer-info.php) configuration:\n - `location` \u0026mdash; used default composer.lock location\n\n## Usage\n#### Basic usage example\nThis is a basic example, which will echo the current version of `webklex/composer-info` and dump the\nall available package information.\n\n```php\nuse Webklex\\ComposerInfo\\ComposerInfo;\n\nnew ComposerInfo();\n\nvar_dump(ComposerInfo::getPackage(\"webklex/composer-info\"));\necho ComposerInfo::getPackageVersion(\"webklex/composer-info\");\n```\n\n## Support\nIf you encounter any problems or if you find a bug, please don't hesitate to create a new [issue](https://github.com/Webklex/composer-info/issues).\nHowever please be aware that it might take some time to get an answer.\nOff topic, rude or abusive issues will be deleted without any notice.\n\nIf you need **immediate** or **commercial** support, feel free to send me a mail at github@webklex.com. \n\n\n##### A little notice\nIf you write source code in your issue, please consider to format it correctly. This makes it so much nicer to read \nand people are more likely to comment and help :)\n\n\u0026#96;\u0026#96;\u0026#96; php\n\necho 'your php code...';\n\n\u0026#96;\u0026#96;\u0026#96;\n\nwill turn into:\n```php\necho 'your php code...';\n```\n\n\n### Features \u0026 pull requests\nEveryone can contribute to this project. Every pull request will be considered but it can also happen to be declined. \nTo prevent unnecessary work, please consider to create a [feature issue](https://github.com/Webklex/composer-info/issues/new?template=feature_request.md) \nfirst, if you're planning to do bigger changes. Of course you can also create a new [feature issue](https://github.com/Webklex/composer-info/issues/new?template=feature_request.md)\nif you're just wishing a feature ;)\n\n\n## Documentation\n### [ComposerInfo::class](src/ComposerInfo.php)\n| Method                    | Arguments            | Return            | Description                                                                                         |\n| ------------------------- | -------------------- | :---------------: | --------------------------------------------------------------------------------------------------- |\n| setConfig                 | array|string $config | self              | Set the ComposerInfo configuration. Take a look at `config/composer-info.php` for more inspiration. |\n| getPackage                | string $name         | array             | Get all available information for a given package name                                              |\n| getPackageVersion         | string $name         | string            | Get the version for a given package name                                                            |\n| load                      | string $location     | string            | Load a specific composer.lock file                                                                  |\n\n## Change log\nPlease see [CHANGELOG][link-changelog] for more information what has changed recently.\n\n\n## Security\nIf you discover any security related issues, please email github@webklex.com instead of using the issue tracker.\n\n\n## Credits\n- [Webklex][link-author]\n- [All Contributors][link-contributors]\n\n\n## License\nThe MIT License (MIT). Please see [License File][link-license] for more information.\n\n\n[ico-version]: https://img.shields.io/packagist/v/Webklex/composer-info.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/Webklex/composer-info/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/Webklex/composer-info.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/Webklex/composer-info.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/Webklex/composer-info.svg?style=flat-square\n[ico-build]: https://img.shields.io/scrutinizer/build/g/Webklex/composer-info/master?style=flat-square\n[ico-quality]: https://img.shields.io/scrutinizer/quality/g/Webklex/composer-info/master?style=flat-square\n[ico-hits]: https://hits.webklex.com/svg/webklex/composer-info\n\n[link-packagist]: https://packagist.org/packages/Webklex/composer-info\n[link-travis]: https://travis-ci.org/Webklex/composer-info\n[link-scrutinizer]: https://scrutinizer-ci.com/g/Webklex/composer-info/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/Webklex/composer-info\n[link-downloads]: https://packagist.org/packages/Webklex/composer-info\n[link-author]: https://github.com/webklex\n[link-contributors]: https://github.com/Webklex/composer-info/graphs/contributors\n[link-license]: https://github.com/Webklex/composer-info/blob/master/LICENSE\n[link-changelog]: https://github.com/Webklex/composer-info/blob/master/CHANGELOG.md\n[link-hits]: https://hits.webklex.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebklex%2Fcomposer-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebklex%2Fcomposer-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebklex%2Fcomposer-info/lists"}