{"id":19594479,"url":"https://github.com/swoft-cloud/swoft-ext","last_synced_at":"2025-06-21T18:06:11.400Z","repository":{"id":49098234,"uuid":"193502121","full_name":"swoft-cloud/swoft-ext","owner":"swoft-cloud","description":"🗂 Swoft extension components: amqp, apollo, breaker, consul, elasticsearch, grpc, kafka, limiter, view, zipkin","archived":false,"fork":false,"pushed_at":"2021-06-29T02:55:37.000Z","size":39289,"stargazers_count":21,"open_issues_count":3,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T15:49:14.378Z","etag":null,"topics":["swoft","swoft-component","swoft-ext"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swoft-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-24T12:35:02.000Z","updated_at":"2024-12-16T05:55:13.000Z","dependencies_parsed_at":"2022-09-01T23:23:08.028Z","dependency_job_id":null,"html_url":"https://github.com/swoft-cloud/swoft-ext","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/swoft-cloud/swoft-ext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swoft-cloud","download_url":"https://codeload.github.com/swoft-cloud/swoft-ext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-ext/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261170425,"owners_count":23119513,"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":["swoft","swoft-component","swoft-ext"],"created_at":"2024-11-11T08:43:40.568Z","updated_at":"2025-06-21T18:06:06.379Z","avatar_url":"https://github.com/swoft-cloud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swoft Ext Component\n\nThis repository is used to manage all swoft extension components.\n\n## [中文说明](README.zh-CN.md)\n\n## IMPORTANT\n\nAll components will **NOT** be modified in the original repository of ext component, **SHOULD ALWAYS** be modified in this repository, also commit and push to this repository, and then @swoft-bot would sync changes to the original repository of component by `git subtree push`, notice that this action needs triggered by the repositories owner.\n\n## Usage\n\nAdd require to `composer.json`\n\n```json\n\"require\": {\n    \"swoft/ext\": \"dev-master as 2.0\"\n}\n```\n\nInstall:\n\n```json\ncomposer update\n```\n\n## Unit Tests\n\nQuick run tests for component:\n\n```bash\n// For all components\n./phpunit.sh all\n// For multi components\n./phpunit.sh db event\n// For one component\n./phpunit.sh event\n```\n\nOnly tests an special component:\n\n```bash\n./phpunit.sh event\n\n// use run.php\nphp run.php -c src/event/phpunit.xml\n\n// filter test method name\nphp run.php -c src/event/phpunit.xml --filter testAddModule\n```\n\nOutput coverage data(TODO):\n\n```bash\n// output coverage. require xdebug ext\nphpunit --coverage-text\n\n// output coverage without xdebug\nphpdbg -dauto_globals_jit=Off -qrr /usr/local/bin/phpunit --coverage-text\nphpdbg -dauto_globals_jit=Off -qrr run.php --coverage-text -c src/event/phpunit.xml\n```\n\n## Contributing\n\nThe development team welcomes you to submit PR (_Pull Request_) to us, but to ensure code quality and uniform style, go to the official main repository [swoft/swoft](https://github.com/swoft-cloud/swoft) and Development repository, Note the code and commit format when contributing code\n\n### Precautions when initiating PR\n\n- Please do not submit PR to each sub-repository, they are all read-only\n- The _development repository_ for the core components is **[swoft/swoft-component][core]**\n- The _development repository_ for extension components is **[swoft/swoft-ext][ext]**\n- Please `fork` the corresponding development warehouse. After modification, please submit your PR to the corresponding development warehouse.\n\n\u003e Officially syncs code to individual sub-warehouses when new versions are released\n\n### Commit Message\n\n- the commit message can only be in English\n- Please try to ensure that the commit message is meaningful\n- it is best to start with the keyword `add:` `update:` `fix:`\n\n### Code Style\n\n- Submitted PHP code **Must** Follow PSR-2 code style\n- Reasonable and meaningful class, method, variable naming\n- Appropriate comments, reasonable use of blank lines to keep the code simple and easy to read\n- Don't include some meaningless information such as `@author`, etc. (_author is  that can be seen from the commit log_)\n\n\n[core]: https://github.com/swoft-cloud/swoft-component\n[ext]: https://github.com/swoft-cloud/swoft-ext\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswoft-cloud%2Fswoft-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswoft-cloud%2Fswoft-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswoft-cloud%2Fswoft-ext/lists"}