{"id":19650385,"url":"https://github.com/frozzare/php-redirects","last_synced_at":"2026-06-14T15:36:40.700Z","repository":{"id":62507673,"uuid":"165720914","full_name":"frozzare/php-redirects","owner":"frozzare","description":"Parse Netlify's _redirects file format.","archived":false,"fork":false,"pushed_at":"2020-01-08T09:48:38.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T01:18:43.229Z","etag":null,"topics":["netlify","parser","php","redirects"],"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/frozzare.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":"2019-01-14T19:24:20.000Z","updated_at":"2024-07-17T16:05:05.000Z","dependencies_parsed_at":"2022-11-02T13:16:14.986Z","dependency_job_id":null,"html_url":"https://github.com/frozzare/php-redirects","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frozzare/php-redirects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frozzare%2Fphp-redirects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frozzare%2Fphp-redirects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frozzare%2Fphp-redirects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frozzare%2Fphp-redirects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frozzare","download_url":"https://codeload.github.com/frozzare/php-redirects/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frozzare%2Fphp-redirects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34326240,"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-14T02:00:07.365Z","response_time":62,"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":["netlify","parser","php","redirects"],"created_at":"2024-11-11T14:58:24.732Z","updated_at":"2026-06-14T15:36:40.683Z","avatar_url":"https://github.com/frozzare.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redirects\n\n[![Build Status](https://travis-ci.org/frozzare/php-redirects.svg?branch=master)](https://travis-ci.org/frozzare/php-redirects)\n\nParse Netlify's _redirects file [format](https://www.netlify.com/docs/redirects/).\n\n## Installation\n\n```\ncomposer require frozzare/redirects\n```\n\n## Usage\n\n```php\nuse Frozzare\\Redirects\\Redirects;\n\n// or redirects() function.\n$redirects = new Redirects(__DIR__ . '/_redirects');\n\n// return array of rules.\n$redirects-\u003erules();\n\n// match url against rule.\n$redirects-\u003ematch($url);\n\n// get url to redirect to.\n$redirects-\u003eurl($url);\n```\n\nMore examples in the [`tests/RedirectsTest.php`](tests/RedirectsTest.php)\n\n## License\n\nMIT © [Fredrik Forsmo](https://github.com/frozzare)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrozzare%2Fphp-redirects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrozzare%2Fphp-redirects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrozzare%2Fphp-redirects/lists"}