{"id":20312493,"url":"https://github.com/psr-framework/router","last_synced_at":"2025-05-07T22:31:31.159Z","repository":{"id":56982722,"uuid":"278692711","full_name":"PSR-Framework/router","owner":"PSR-Framework","description":"Simple router for PHP 7.4+","archived":true,"fork":false,"pushed_at":"2020-07-22T15:22:44.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T08:31:19.293Z","etag":null,"topics":["framework","php","php7","router"],"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/PSR-Framework.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":"2020-07-10T17:20:52.000Z","updated_at":"2024-11-14T17:49:10.000Z","dependencies_parsed_at":"2022-08-21T12:20:14.037Z","dependency_job_id":null,"html_url":"https://github.com/PSR-Framework/router","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSR-Framework%2Frouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSR-Framework%2Frouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSR-Framework%2Frouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSR-Framework%2Frouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PSR-Framework","download_url":"https://codeload.github.com/PSR-Framework/router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252965589,"owners_count":21832918,"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":["framework","php","php7","router"],"created_at":"2024-11-14T18:06:22.658Z","updated_at":"2025-05-07T22:31:30.803Z","avatar_url":"https://github.com/PSR-Framework.png","language":"PHP","readme":"## Router\n\nSimple router for PSR-7 requests. PHP 7.4+\n\n[![Latest Version](https://img.shields.io/github/release/Furious-PHP/router.svg?style=flat-square)](https://github.com/Arslanoov/furious-router/releases)\n[![Build Status](https://scrutinizer-ci.com/g/Furious-PHP/router/badges/build.png?b=master)](https://scrutinizer-ci.com/g/Furious-PHP/router/build-status/master)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/Furious-PHP/router/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)\n[![Quality Score](https://img.shields.io/scrutinizer/g/Furious-PHP/router.svg?style=flat-square)](https://scrutinizer-ci.com/g/Furious-PHP/router)\n[![Maintainability](https://api.codeclimate.com/v1/badges/71ecfc66e6100d3ffa0d/maintainability)](https://codeclimate.com/github/Furious-PHP/router/maintainability)\n[![Total Downloads](https://poser.pugx.org/furious/router/downloads)](https://packagist.org/packages/furious/router)\n[![Monthly Downloads](https://poser.pugx.org/furious/router/d/monthly.png)](https://packagist.org/packages/furious/router)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n\nInstall:\n\n    composer require furious/router\n\nUse:\n\n    $routes = new RouteCollection();\n    \n    // Add route\n    $routes-\u003eget('home', '/path', SomeHandler::class);\n    \n    $router = new Router($routes);\n    \n    // '/path'\n    $router-\u003egenerate('home');\n    \n    // Match route\n    $router-\u003ematch($psr7Request);\n    \n    // Add route in router\n    $router-\u003eaddRoute(new Route('about', '/about', AboutHandler::class, 'GET'));\n    \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsr-framework%2Frouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsr-framework%2Frouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsr-framework%2Frouter/lists"}