PHPackages                             scrawler/router - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. scrawler/router

ActiveLibrary[Framework](/categories/framework)

scrawler/router
===============

An Fully Automatic RESTful PHP Router.

v4.3.0(11mo ago)552.2k8[2 PRs](https://github.com/scrawler-labs/router/pulls)MITPHPCI passing

Since May 14Pushed 11mo ago4 watchersCompare

[ Source](https://github.com/scrawler-labs/router)[ Packagist](https://packagist.org/packages/scrawler/router)[ Docs](http://github.com/scrawler-php/router)[ RSS](/packages/scrawler-router/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (8)Versions (38)Used By (0)

 Scrawler Router
=================

[](#-scrawler-router-)

[![GitHub Workflow Status](https://camo.githubusercontent.com/c83c69d4ba7623c3799142d021d6769157c8b7c57724f0f22e6bb1aa2119d054/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73637261776c65722d6c6162732f726f757465722f6d61696e2e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/scrawler-labs/router/actions/workflows/main.yml)[![Codecov](https://camo.githubusercontent.com/2dc85f8e5e850a8f73d40adf95000ebcc794a35136f4452be547f6835a07944c/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f73637261776c65722d6c6162732f726f757465723f7374796c653d666c61742d737175617265)](https://app.codecov.io/gh/scrawler-labs/router)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7b86806b721b4a38f757005440ba1d1965fa5a4a816b7a064bcbb17c1adf95e7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f73637261776c65722d6c6162732f726f757465723f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/scrawler-labs/router/?branch=main)[![PHPStan Enabled](https://camo.githubusercontent.com/a44af5fc39484990738cc4bd3874d884a42afdeed470b34a010e77bb8341ef31/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/a44af5fc39484990738cc4bd3874d884a42afdeed470b34a010e77bb8341ef31/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![Packagist Version](https://camo.githubusercontent.com/315355df7360f54d66536c4379df9a0bb30f742b4a4b5624e8f3b57049597bfa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73637261776c65722f726f757465723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/scrawler/router)[![Packagist Downloads](https://camo.githubusercontent.com/949c5cd478730e98947181a2792b039481ff2835c77570e2ab6e53168892e79b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73637261776c65722f726f757465723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/scrawler/router)[![Packagist License](https://camo.githubusercontent.com/4b751fc65c49bae188135c147024475d43cbd3dbd45aab6af990e00b3de9a8f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73637261776c65722f726f757465723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/scrawler/router)

🔥An Fully Automatic, Framework independent, RESTful PHP Router component🔥
🇮🇳 Made in India 🇮🇳

[![Demo](https://camo.githubusercontent.com/7f68541cbe6f056075a1d540573a87799fc3214a7933a8cfcdb670953e268083/687474703a2f2f672e7265636f726469742e636f2f6c76516261346d6e79422e676966)](https://camo.githubusercontent.com/7f68541cbe6f056075a1d540573a87799fc3214a7933a8cfcdb670953e268083/687474703a2f2f672e7265636f726469742e636f2f6c76516261346d6e79422e676966)

Complete docs can be found [here](https://component.scrawlerlabs.com/router/)

🤔 Why use Scrawler Router?
--------------------------

[](#-why-use-scrawler-router)

- Fully automatic, you dont need to define single manual route.
- Support manual route defination for your edge use case.
- No configrations , works out of the box with any php project.
- Stable and well tested.
- Saves lot of time while building RESTful applications

💻 Installation
--------------

[](#-installation)

You can install Scrawler Router via Composer. If you don't have composer installed , you can download composer from [here](https://getcomposer.org/download/)

```
composer require scrawler/router
```

✨ Setup
-------

[](#-setup)

Note 4.x release changes the way router handles request and response, if you still wanna continue using old way with symfony components goto [3.x branch](https://github.com/scrawler-labs/router/tree/3.x)

```
