{"id":16930425,"url":"https://github.com/samwho/php-routing","last_synced_at":"2025-07-26T17:38:35.214Z","repository":{"id":1507194,"uuid":"1763321","full_name":"samwho/PHP-Routing","owner":"samwho","description":"Rails-style routing for PHP.","archived":false,"fork":false,"pushed_at":"2012-04-15T12:36:22.000Z","size":451,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T06:12:47.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samwho.png","metadata":{"files":{"readme":"README.markdown","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":"2011-05-17T22:35:59.000Z","updated_at":"2023-10-16T03:45:56.000Z","dependencies_parsed_at":"2022-07-20T08:32:28.032Z","dependency_job_id":null,"html_url":"https://github.com/samwho/PHP-Routing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwho%2FPHP-Routing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwho%2FPHP-Routing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwho%2FPHP-Routing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samwho%2FPHP-Routing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samwho","download_url":"https://codeload.github.com/samwho/PHP-Routing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248458602,"owners_count":21107112,"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-10-13T20:41:42.354Z","updated_at":"2025-04-11T18:32:01.731Z","avatar_url":"https://github.com/samwho.png","language":"PHP","readme":"# PHP Routing\n\nThis code is a PHP implementation of Rails-style URL routing. It is\nintended to be a drop-in bit of code that you can use with any website.\n\nThe project is an adaptation of the code found here:\nhttp://blog.sosedoff.com/2009/09/20/rails-like-php-url-router/\n\n## Usage\n\nTo use this code you only need the two files under the lib/model/\ndirectory: class.Router.php and class.Route.php. If you take these\ntwo files, put them in your own project's code and make sure they're\nincluded on the page you want to use them on, you're ready to go.\n\nThe way that I recommend using this code is to take a look at the\n.htaccess file in the same directory as this README. It will route\nall requests that aren't to a currently existing file/directory\nand send them to router.php and in router.php there are some usage\nexamples.\n\n## External Libraries\n\nThe project uses the SimpleTest library for PHP Unit Testing. This is\nincluded with the source but you will not need it for normal use. You\nwill only need it if you wish to fork this repository and contribute\ncode.\n\n# Contributing\n\nThis project uses the [git-flow](https://github.com/nvie/gitflow) workflow. If\nyou want to contribute, fork the repository, create a feature branch, when\nyou're done issue a pull request to origin/develop :)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamwho%2Fphp-routing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamwho%2Fphp-routing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamwho%2Fphp-routing/lists"}