{"id":15583305,"url":"https://github.com/nextras/static-router","last_synced_at":"2025-07-25T17:12:23.513Z","repository":{"id":21493435,"uuid":"24812335","full_name":"nextras/static-router","owner":"nextras","description":"Simple static router for Nette Framework","archived":false,"fork":false,"pushed_at":"2020-12-20T14:55:17.000Z","size":29,"stargazers_count":25,"open_issues_count":0,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-02T18:57:20.154Z","etag":null,"topics":["nette-component","nextras","routing"],"latest_commit_sha":null,"homepage":"https://nextras.org/static-router","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/nextras.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":"2014-10-05T09:20:31.000Z","updated_at":"2023-08-20T22:14:43.000Z","dependencies_parsed_at":"2022-08-30T04:01:25.353Z","dependency_job_id":null,"html_url":"https://github.com/nextras/static-router","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/nextras/static-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextras%2Fstatic-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextras%2Fstatic-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextras%2Fstatic-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextras%2Fstatic-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextras","download_url":"https://codeload.github.com/nextras/static-router/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextras%2Fstatic-router/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263499193,"owners_count":23476021,"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":["nette-component","nextras","routing"],"created_at":"2024-10-02T20:06:53.431Z","updated_at":"2025-07-04T11:06:36.776Z","avatar_url":"https://github.com/nextras.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Nextras StaticRouter\n====================\n\n[![Build Status](https://github.com/nextras/static-router/workflows/QA/badge.svg?branch=master)](https://github.com/nextras/static-router/actions?query=workflow%3AQA+branch%3Amaster)\n[![Downloads this Month](https://img.shields.io/packagist/dm/nextras/static-router.svg?style=flat)](https://packagist.org/packages/nextras/static-router)\n[![Stable Version](https://img.shields.io/packagist/v/nextras/static-router.svg?style=flat)](https://packagist.org/packages/nextras/static-router)\n\n\n### Installation\n\nAdd to your composer.json:\n\n```\n\"require\": {\n\t\"nextras/static-router\": \"~2.0\"\n}\n```\n\n\n### Example\n\n```php\nuse Nextras\\Routing\\StaticRouter;\n\n$router = new StaticRouter(['Homepage:default' =\u003e 'index.php'], StaticRouter::ONE_WAY);\n\n$router = new StaticRouter([\n\t'Homepage:default' =\u003e '',\n\t'Auth:signIn' =\u003e 'sign-in',\n\t'Auth:signOut' =\u003e 'sign-out',\n\t'Auth:signUp' =\u003e 'sign-up',\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextras%2Fstatic-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextras%2Fstatic-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextras%2Fstatic-router/lists"}