{"id":19594466,"url":"https://github.com/swoft-cloud/swoft-component","last_synced_at":"2025-04-05T11:11:28.111Z","repository":{"id":31836969,"uuid":"129082597","full_name":"swoft-cloud/swoft-component","owner":"swoft-cloud","description":"📦 This is a repository of  centralized management of all swoft core components","archived":false,"fork":false,"pushed_at":"2022-12-20T12:00:51.000Z","size":7850,"stargazers_count":96,"open_issues_count":10,"forks_count":107,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-29T10:09:18.789Z","etag":null,"topics":["aop","coroutine","microservice","swoft","swoole"],"latest_commit_sha":null,"homepage":"https://www.swoft.org","language":"PHP","has_issues":true,"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":"CHANGELOG.md","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":"2018-04-11T11:23:58.000Z","updated_at":"2024-12-16T05:56:29.000Z","dependencies_parsed_at":"2023-01-14T20:01:02.800Z","dependency_job_id":null,"html_url":"https://github.com/swoft-cloud/swoft-component","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swoft-cloud","download_url":"https://codeload.github.com/swoft-cloud/swoft-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325693,"owners_count":20920714,"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":["aop","coroutine","microservice","swoft","swoole"],"created_at":"2024-11-11T08:43:37.572Z","updated_at":"2025-04-05T11:11:28.091Z","avatar_url":"https://github.com/swoft-cloud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swoft Component\n\n[![Actions Status](https://github.com/swoft-cloud/swoft-component/workflows/Unit-tests/badge.svg)](https://github.com/swoft-cloud/swoft-component/actions)\n[![Build Status](https://travis-ci.org/swoft-cloud/swoft-component.svg?branch=master)](https://travis-ci.org/swoft-cloud/swoft-component)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/swoft-cloud/swoft-component)](https://github.com/swoft-cloud/swoft-component)\n\nThis repository is used to manage all swoft core components.\n\n## [中文说明](README.zh-CN.md)\n\n中文说明请查看 [README.zh-CN.md](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```bash\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// use run.php\nphp run.php -c src/event/phpunit.xml\n// filter test method name\nphp run.php -c src/event/phpunit.xml --filter testAddModule\n```\n\nOutput coverage data:\n\n```bash\n// output coverage. require xdebug ext\nphpunit --coverage-text\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## Releases\n\nPlease see https://github.com/swoftlabs/swoft-releasecli\n\n## Document\n\n- [中文文档](https://www.swoft.org/docs)\n- [English](https://en.swoft.org/docs)\n\n## Discuss\n\n- Forum https://github.com/swoft-cloud/forum/issues\n- Gitter.im https://gitter.im/swoft-cloud/community\n- Reddit https://www.reddit.com/r/swoft/\n- QQ Group1: 548173319      \n- QQ Group2: 778656850\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### 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-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswoft-cloud%2Fswoft-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswoft-cloud%2Fswoft-component/lists"}