{"id":20713837,"url":"https://github.com/mauricio-msp/routing-adapter","last_synced_at":"2026-06-10T09:31:25.301Z","repository":{"id":62525475,"uuid":"93346522","full_name":"mauricio-msp/routing-adapter","owner":"mauricio-msp","description":" :beginner: Roteador adaptado, fácil e rápido com PHP","archived":false,"fork":false,"pushed_at":"2017-08-03T16:39:03.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T23:03:35.231Z","etag":null,"topics":["adapter","klein","php","rota","route","router","routing","twig-templates"],"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/mauricio-msp.png","metadata":{"files":{"readme":"README.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":"2017-06-04T22:59:11.000Z","updated_at":"2025-05-09T01:00:10.000Z","dependencies_parsed_at":"2022-11-02T14:16:05.931Z","dependency_job_id":null,"html_url":"https://github.com/mauricio-msp/routing-adapter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mauricio-msp/routing-adapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricio-msp%2Frouting-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricio-msp%2Frouting-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricio-msp%2Frouting-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricio-msp%2Frouting-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauricio-msp","download_url":"https://codeload.github.com/mauricio-msp/routing-adapter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricio-msp%2Frouting-adapter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34146871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["adapter","klein","php","rota","route","router","routing","twig-templates"],"created_at":"2024-11-17T02:27:33.732Z","updated_at":"2026-06-10T09:31:25.169Z","avatar_url":"https://github.com/mauricio-msp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo-routing github](https://cloud.githubusercontent.com/assets/13602785/26808092/eaeb8d4c-4a30-11e7-892c-6de716534eb0.png)\n\n\n# Sobre a aplicação\n\n### Uma aplicação que adapta modo de chamada da(s) rota(s) \n\nÉ uma aplicação que adapta a chamada de função em sua(s) rota(s) usando o [klein.php](https://github.com/klein/klein.php), além de renderizar as páginas usando o [Twig Template](https://twig.sensiolabs.org).\n\n# Melhor entendimento\n\nVeja antes como funciona o gerenciador de rotas [klein.php](https://github.com/klein/klein.php) e suas configurações e como funciona a engine [Twig Template](https://twig.sensiolabs.org) (renderizador de páginas). Após a compreensão, poderá utilizar o routing tranquilamente.\n\n# Instalação\n\nÉ recomendável que você use o [Composer](https://getcomposer.org) para instalar o routing.\n\n```\n$ composer require mauricio-msp/routing\n```\n\nO routing vai instalar todas as dependências necessárias, como: \n\n- klein.php (is a fast \u0026 flexible router for PHP 5.3+)\n- Twig Template (Twig, the flexible, fast, and secure template language for PHP )\n\n# Exemplo\n\n###### index.php\n\n``` php\n\u003c?php\n\n  require __DIR__ . '/vendor/autoload.php';\n  \n  $route = new \\Src\\Routing\\Route();\n  \n  $route-\u003eget('/', 'Index@action');\n  \n  $route-\u003edispatch();\n```\n\n# Tipos de rotas\n\n``` php\n\u003c?php\n\n  $route-\u003eget('/posts', $callback);\n  $route-\u003epost('/posts', $callback);\n  $route-\u003eput('/posts/[i:id]', $callback);\n  $route-\u003edelete('/posts/[i:id]', $callback);\n```\n\n# Licença\n\nO routing é uma aplicação open-source licenciado sob a [licença MIT](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricio-msp%2Frouting-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauricio-msp%2Frouting-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricio-msp%2Frouting-adapter/lists"}