{"id":19478469,"url":"https://github.com/jadob/router","last_synced_at":"2026-03-02T18:30:30.804Z","repository":{"id":56995681,"uuid":"407648079","full_name":"jadob/router","owner":"jadob","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-19T19:59:08.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T21:40:01.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"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/jadob.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":"2021-09-17T18:49:53.000Z","updated_at":"2025-04-19T19:59:12.000Z","dependencies_parsed_at":"2024-11-10T19:50:18.113Z","dependency_job_id":"d809257c-6632-445c-a2f5-e055f3baf20d","html_url":"https://github.com/jadob/router","commit_stats":{"total_commits":90,"total_committers":1,"mean_commits":90.0,"dds":0.0,"last_synced_commit":"c9e15e0776f8ed8a3406ec9bf6f71dd68e18913b"},"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadob%2Frouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadob%2Frouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadob%2Frouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadob%2Frouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jadob","download_url":"https://codeload.github.com/jadob/router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250834301,"owners_count":21494946,"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":"2024-11-10T19:49:54.791Z","updated_at":"2026-03-02T18:30:30.799Z","avatar_url":"https://github.com/jadob.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jadob/router\n\n## Routing component for Jadob Framework\n\n\n### Getting Started\n\n\n```php\n//Creating and configuring router instance:\n\n\n//defining routes:\n$routes = [\n    'home' =\u003e [\n        'path' =\u003e '/', //required\n        'controller' =\u003e Your/App/Controller::class, //required\n        'action' =\u003e 'index' //not required\n        'ignore_global_prefix' =\u003e true //if true, \n    ],\n];\n\n\n//if you need to add a set of routes with a common prefix:\n$collection = new \\Jadob\\Router\\RouteCollection();\n$collection-\u003esetPrefix('/backend');\n\n\n// this route will be matched on URI \"/backend/posts/new\"\n$backendRoute = (new Route('backend_new_post'))\n    -\u003esetPath('/posts/new')\n    -\u003esetController(\\Your\\App\\BackendController::class)\n    -\u003esetAction('newPost');\n\n\n\n$collection-\u003eaddRoute($backendRoute);\n\n//when collection is passed to array, his key is ignored\n$routes['backend_collection']  = $collection;\n\n\n$routerConfig = [\n    'routes' =\u003e $routes\n];\n\n\n$router = new \\Jadob\\Router\\Router($routerConfig);\n\n\n\n\n\n````\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadob%2Frouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjadob%2Frouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadob%2Frouter/lists"}