{"id":18345818,"url":"https://github.com/hyperf/composer-plugin","last_synced_at":"2025-06-26T01:38:05.651Z","repository":{"id":56987707,"uuid":"325911771","full_name":"hyperf/composer-plugin","owner":"hyperf","description":"Plugin for Composer","archived":false,"fork":false,"pushed_at":"2023-07-18T01:04:01.000Z","size":16,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-13T11:57:42.095Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"hyperf","custom":"https://hyperf.wiki/#/zh-cn/donate"}},"created_at":"2021-01-01T03:40:59.000Z","updated_at":"2023-02-28T01:39:44.000Z","dependencies_parsed_at":"2025-04-06T08:32:21.369Z","dependency_job_id":"42b63eb5-8df9-44ec-b1cf-2d573746e3f8","html_url":"https://github.com/hyperf/composer-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hyperf/composer-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fcomposer-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fcomposer-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fcomposer-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fcomposer-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperf","download_url":"https://codeload.github.com/hyperf/composer-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fcomposer-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261983719,"owners_count":23240219,"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-11-05T21:09:34.130Z","updated_at":"2025-06-26T01:38:05.609Z","avatar_url":"https://github.com/hyperf.png","language":"PHP","readme":"# Composer Plugin for Hyperf\n\n## 安装\n\n```\ncomposer require hyperf/composer-plugin\n```\n\n## 使用\n\n使用此组件可以方便的对 `files` 自动加载进行排序，比如我们在 `Laravel` 中使用 `hyperf/utils` 组件时，会因为 `Hyperf` 自动加载优于 `Laravel`，导致 `Laravel` 无法正常使用。\n\n故我们可以降低 `hyperf/utils` 组件的加载优先级，然后重新执行 `composer dump-autoload -o` 即可解决这个问题，样例如下：\n\n```json\n\"extra\": {\n    \"hyperf\": {\n        \"plugin\": {\n            \"sort-autoload\": {\n                \"hyperf/utils\": -1\n            }\n        }\n    }\n},\n```\n","funding_links":["https://opencollective.com/hyperf","https://hyperf.wiki/#/zh-cn/donate"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf%2Fcomposer-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperf%2Fcomposer-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf%2Fcomposer-plugin/lists"}