{"id":23107071,"url":"https://github.com/four43/divergence","last_synced_at":"2026-01-16T00:55:09.168Z","repository":{"id":15160024,"uuid":"17887658","full_name":"four43/divergence","owner":"four43","description":"A fast router for PHP, as easy, or as full featured as you need it.","archived":false,"fork":false,"pushed_at":"2014-03-24T05:05:48.000Z","size":184,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-09T10:31:00.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/four43.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":"2014-03-19T00:58:05.000Z","updated_at":"2015-05-29T05:00:17.000Z","dependencies_parsed_at":"2022-09-19T00:31:47.974Z","dependency_job_id":null,"html_url":"https://github.com/four43/divergence","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/four43%2Fdivergence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/four43%2Fdivergence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/four43%2Fdivergence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/four43%2Fdivergence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/four43","download_url":"https://codeload.github.com/four43/divergence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092374,"owners_count":20882217,"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-12-17T01:12:12.046Z","updated_at":"2026-01-16T00:55:09.161Z","avatar_url":"https://github.com/four43.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Divergence Router\n=================\n\nA fast router for PHP, as easy, or as full featured as you need it.\n\nInsipred by ToroRouter (https://github.com/anandkunal/ToroPHP), which is a great\nrouter to quickly create simple apps. Divergence aims to be almost as simple, but\nprovide more features for larger apps.\n\nBuild Status\n------------\nMaster: [![Build Status](https://travis-ci.org/four43/divergence.svg?branch=master)](https://travis-ci.org/four43/divergence)\n\nDevelopment: [![Build Status](https://travis-ci.org/four43/divergence.svg?branch=development)](https://travis-ci.org/four43/divergence)\n\nFeatures\n--------\n\n* *Simple* - Single file rouder, commented and easy to understand.\n* *Debug* - Provided debug handler, add it to your app temporarily to see what callbacks\nget called when, and with what data.\n* *Server Setup* - Use provided server configs (.htaccess for Apache and web.config for IIS) to route\nall of your requests to your index.php file.\n\nExample\n-------\n\n###Basic\n```php\n\u003c?php\n$routes = array(\n\t'/v1/action/:number' =\u003e 'RestV1\\Controller\\Action'\n);\n\\Divegent\\Router::serve($routes);\n```\nWill route `/v1/action/123` to the controller `RestV1\\Controller\\Action` based \non the method, `GET` will call the `get()` method as `get(123)`\n\n###Basic - Callback\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffour43%2Fdivergence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffour43%2Fdivergence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffour43%2Fdivergence/lists"}