{"id":16673992,"url":"https://github.com/sensorario/sensorario-url-route","last_synced_at":"2025-07-29T10:05:10.356Z","repository":{"id":6138256,"uuid":"7366954","full_name":"sensorario/sensorario-url-route","owner":"sensorario","description":"Create SEO URL with annotations ","archived":false,"fork":false,"pushed_at":"2013-04-25T14:47:22.000Z","size":164,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master-5.4","last_synced_at":"2025-03-13T02:31:48.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.yiiframework.com/extension/sensorario-url-route/","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/sensorario.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}},"created_at":"2012-12-29T14:07:56.000Z","updated_at":"2017-11-15T13:35:48.000Z","dependencies_parsed_at":"2022-08-29T19:40:37.372Z","dependency_job_id":null,"html_url":"https://github.com/sensorario/sensorario-url-route","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sensorario/sensorario-url-route","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fsensorario-url-route","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fsensorario-url-route/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fsensorario-url-route/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fsensorario-url-route/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensorario","download_url":"https://codeload.github.com/sensorario/sensorario-url-route/tar.gz/refs/heads/master-5.4","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fsensorario-url-route/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267668286,"owners_count":24124963,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-12T12:29:00.941Z","updated_at":"2025-07-29T10:05:10.294Z","avatar_url":"https://github.com/sensorario.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Install\n-------\n\nI suggest to install this module using composer.\n\n    {\n      ...\n      \"require\": {\n        ...\n        \"sensorario/sensorariourlroute\": \"@dev\"\n      }\n      ...\n    }\n\nLoad SensorarioUrlRoute module in config/main.php configuration file:\n\n    'sensorariourlroute' =\u003e array(\n      'class' =\u003e 'webroot.vendor.sensorario.sensorariourlroute.SensorarioUrlRouteModule',\n    ),\n\nEnable URLs in path format:\n\n    'components' =\u003e array(\n      'urlManager' =\u003e array(\n        'urlFormat' =\u003e 'path',\n        'rules' =\u003e require 'routing.php',\n      ),\n    ),\n\nUsage\n-----\n\nAdd annotations in DocComments of actions:\n\n    class SiteController extends Controller\n\n      /**\n       * @Route(name=\"homepage\");\n       */\n      public function actionIndex()\n      {\n        $this-\u003erender('index');\n      }\n\n    }\n\nGo to index.php/SensorarioUrlRoute and click on \"Generate routing file\". A file\nwill be generated with this contents:\n\n    \u003c?php return array(\n        'homepage'=\u003e'site/index',\n    );\n\nNow, to get rout of 'homepage' route, you could use this code:\n\n    ((new CreateUrl('homepage'))-\u003egetRoute()))\n\n\nUsage with parameters\n---------------------\n\nInstead of /site/hello/username/sensorario you can type url /hello/sensorario.\n\n    /**\n     * @Route(value=\"hello/\u003cusername:\\w+\u003e\");\n     */\n    public function actionHello($username)\n    {\n      echo \"Hello $username\";\n      die;\n    }","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensorario%2Fsensorario-url-route","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensorario%2Fsensorario-url-route","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensorario%2Fsensorario-url-route/lists"}