{"id":29249314,"url":"https://github.com/hyperf-plus/core","last_synced_at":"2025-07-04T00:39:14.295Z","repository":{"id":302577229,"uuid":"1012917877","full_name":"hyperf-plus/core","owner":"hyperf-plus","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-03T05:33:49.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-03T05:45:17.886Z","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-plus.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,"zenodo":null}},"created_at":"2025-07-03T05:02:14.000Z","updated_at":"2025-07-03T05:33:52.000Z","dependencies_parsed_at":"2025-07-03T05:45:19.695Z","dependency_job_id":"d269e0d7-5a4f-46eb-a324-a456ef19c6a0","html_url":"https://github.com/hyperf-plus/core","commit_stats":null,"previous_names":["hyperf-plus/core"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hyperf-plus/core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-plus%2Fcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-plus%2Fcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-plus%2Fcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-plus%2Fcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperf-plus","download_url":"https://codeload.github.com/hyperf-plus/core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-plus%2Fcore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263426807,"owners_count":23464806,"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":"2025-07-04T00:39:12.893Z","updated_at":"2025-07-04T00:39:14.267Z","avatar_url":"https://github.com/hyperf-plus.png","language":"PHP","readme":"# HPlus Core 核心基础包\n\n## 简介\n\nHPlus Core 是 HPlus 微服务架构的核心基础包，提供公共的基础组件和抽象类。\n\n## 功能特性\n\n- **异常处理**: 统一的业务异常处理机制\n- **服务基类**: 简单的服务抽象基类\n\n## 安装\n\n```bash\ncomposer require hyperf-plus/core\n```\n\n## 使用方法\n\n### Model基类\n\n```php\n\u003c?php\n\nnamespace YourApp\\Model;\n\nuse HPlus\\Core\\Model\\Model;\n\nclass YourModel extends Model\n{\n    protected string $table = 'your_table';\n    \n    protected array $fillable = ['field1', 'field2'];\n}\n```\n\n### 异常处理\n\n```php\n\u003c?php\n\nuse HPlus\\Core\\Exception\\BusinessException;\n\n// 抛出业务异常\nthrow new BusinessException('业务错误信息');\n```\n\n### 服务基类\n\n```php\n\u003c?php\n\nnamespace YourApp\\Service;\n\nuse HPlus\\Core\\Service\\AbstractService;\n\nclass YourService extends AbstractService\n{\n    public function doSomething()\n    {\n        // 业务逻辑\n    }\n}\n```\n\n## 依赖关系\n\n- 继承现有的 `YC\\Open\\Model\\Model`\n- 继承现有的 `YC\\Core\\Exception\\ApiException`\n- 完全兼容现有的异常处理机制\n\n## 许可证\n\nMIT ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf-plus%2Fcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperf-plus%2Fcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf-plus%2Fcore/lists"}