{"id":28157082,"url":"https://github.com/cloudtay/laravel-coral","last_synced_at":"2026-05-03T06:02:27.679Z","repository":{"id":290313643,"uuid":"974027112","full_name":"cloudtay/laravel-coral","owner":"cloudtay","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-21T11:44:15.000Z","size":147,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-21T13:29:49.296Z","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/cloudtay.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-28T06:37:29.000Z","updated_at":"2025-10-21T11:43:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"d09b0b85-9424-4564-bafb-227d0e00b5ab","html_url":"https://github.com/cloudtay/laravel-coral","commit_stats":null,"previous_names":["cloudtay/laravel-coral"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cloudtay/laravel-coral","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudtay%2Flaravel-coral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudtay%2Flaravel-coral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudtay%2Flaravel-coral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudtay%2Flaravel-coral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudtay","download_url":"https://codeload.github.com/cloudtay/laravel-coral/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudtay%2Flaravel-coral/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29930344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-05-15T08:16:10.218Z","updated_at":"2026-05-03T06:02:27.649Z","avatar_url":"https://github.com/cloudtay.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"### `Laravel Coral`\n\n一个用于Laravel框架的模块化开发扩展包\n\n---\n\n### 特性\n\n- **模块化架构**: 允许将应用拆分为独立的模块\n- **自动路由注册**: 基于注解/属性的路由定义\n- **中间件支持**: 提供基于属性的中间件定义方式\n- **请求验证**: 内置路由参数验证功能\n- **速率限制**: 方便地为接口添加速率限制功能\n- **数据库事务**: 简化数据库事务处理\n- **工作器管理**: 包含定时任务和后台工作器支持\n- **视图管理**: 模块化的视图组织\n\n### 自定义模块层\n\n默认会扫描 `app/Modules`，并保持原有模块目录、`.ignore`、控制器、命令、工作器和视图注册方式不变。\n\n如果需要额外的模块层，例如 `app/Plugins`，可以在应用配置中添加：\n\n```php\n// config/coral.php\nreturn [\n    'module_layers' =\u003e [\n        app_path('Modules'),\n        app_path('Plugins'),\n    ],\n];\n```\n\n`app_path('Plugins')` 会解析为 `App\\Plugins` 命名空间，模块类为 `App\\Plugins\\{ModuleName}\\Module`。\n\n### 安装\n\n```bash\ncomposer require cloudtay/laravel-coral\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudtay%2Flaravel-coral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudtay%2Flaravel-coral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudtay%2Flaravel-coral/lists"}