{"id":20256251,"url":"https://github.com/hazardland/router.php","last_synced_at":"2026-05-11T17:36:00.098Z","repository":{"id":69835965,"uuid":"160334211","full_name":"hazardland/router.php","owner":"hazardland","description":"Simpliest Laravel like router one class one file router","archived":false,"fork":false,"pushed_at":"2020-03-12T15:15:39.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T18:43:51.966Z","etag":null,"topics":["php-router","php-router-standalone"],"latest_commit_sha":null,"homepage":"","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/hazardland.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}},"created_at":"2018-12-04T09:43:03.000Z","updated_at":"2022-09-01T16:58:01.000Z","dependencies_parsed_at":"2023-03-09T07:15:24.581Z","dependency_job_id":null,"html_url":"https://github.com/hazardland/router.php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hazardland/router.php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazardland%2Frouter.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazardland%2Frouter.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazardland%2Frouter.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazardland%2Frouter.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazardland","download_url":"https://codeload.github.com/hazardland/router.php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazardland%2Frouter.php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32906421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-11T17:09:15.040Z","status":"ssl_error","status_checked_at":"2026-05-11T17:08:45.420Z","response_time":120,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["php-router","php-router-standalone"],"created_at":"2024-11-14T10:46:00.340Z","updated_at":"2026-05-11T17:36:00.066Z","avatar_url":"https://github.com/hazardland.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"```php\n\u003c?php\n\ninclude './config/config.php';\n\napp::$config['path']['view'] = '/var/www/something.com/public/views';\napp::$config['view']['404'] = '404';\napp::$config['locale'] = ['en','ge'];\n\n// call anonymous function and pass id\n// links with\n// 'en/news/13', 'ge/news/13' and 'news/13' will activate route\napp::get ('news/{id}',function($id){\n    //parse view with passed variables\n    app::view('news_item',['id'=\u003e$id]);\n})\n-\u003ename('news') //short key of route\n-\u003etype('id','int'); //restrict type of id\n\n\n\n/*\n    call some method of class\n*/\napp::post ('news/publish','home.index');\n\napp::run();\n\n//get current locale\napp::locale();\napp::url('news',5);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazardland%2Frouter.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazardland%2Frouter.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazardland%2Frouter.php/lists"}