{"id":14971294,"url":"https://github.com/undefinedor/smartrest","last_synced_at":"2025-10-26T15:30:27.666Z","repository":{"id":57075288,"uuid":"194620404","full_name":"undefinedor/SmartRest","owner":"undefinedor","description":"A smart rest function for yii2","archived":false,"fork":false,"pushed_at":"2019-07-01T08:28:01.000Z","size":4,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T20:55:51.450Z","etag":null,"topics":["yii2","yii2-extension"],"latest_commit_sha":null,"homepage":"","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/undefinedor.png","metadata":{"files":{"readme":"README-ZH.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-07-01T07:20:20.000Z","updated_at":"2019-07-01T11:34:04.000Z","dependencies_parsed_at":"2022-08-24T14:55:41.689Z","dependency_job_id":null,"html_url":"https://github.com/undefinedor/SmartRest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/undefinedor%2FSmartRest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/undefinedor%2FSmartRest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/undefinedor%2FSmartRest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/undefinedor%2FSmartRest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/undefinedor","download_url":"https://codeload.github.com/undefinedor/SmartRest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238347894,"owners_count":19457012,"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":["yii2","yii2-extension"],"created_at":"2024-09-24T13:44:59.054Z","updated_at":"2025-10-26T15:30:22.339Z","avatar_url":"https://github.com/undefinedor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SmartRest\n\n## 目的\n\n官方提供的`yii\\rest\\urlRule`类必须声明controller属性。每次增加控制器的时候,都需要在`controller`属性中声明,过于繁琐。本项目解决了该问题。\n\n\n## 安装\n最佳方式是通过[Composer](https://getcomposer.org/download/) .\n\n```\ncomposer require undefinedor/smart-rest\n```\n\n\n## 使用方法\n\n```php\n\n 'urlManager' =\u003e [\n            'enablePrettyUrl' =\u003e true,\n            'showScriptName' =\u003e false,\n            'enableStrictParsing' =\u003e true,\n            'rules' =\u003e [\n                ['class' =\u003e 'SmartRest\\UrlRule'],\n            ],\n        ],\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fundefinedor%2Fsmartrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fundefinedor%2Fsmartrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fundefinedor%2Fsmartrest/lists"}