PHPackages                             ilias/opherator - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ilias/opherator

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ilias/opherator
===============

Package to handle requests

1.0.8(1y ago)11352MITPHP

Since Jul 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/iloElias/opherator)[ Packagist](https://packagist.org/packages/ilias/opherator)[ Docs](https://github.com/iloElias/opherator)[ RSS](/packages/ilias-opherator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (19)Used By (2)

opherator Router @IloElias
==========================

[](#opherator-router-iloelias)

[![Maintainer](https://camo.githubusercontent.com/7747e8335e6e4ef5045ec7ec6217c9f98b3a9c6f85ad84655a0b8e2c6c64f5a3/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d40696c6f456c6961732d626c75652e737667)](https://github.com/iloElias)[![Package](https://camo.githubusercontent.com/366431efee8169d8d2703385a837a242bbc291814b17755d8981a3b150d199c3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b6167652d696c6f656c6961732f6f7068657261746f722d6f72616e67652e737667)](https://packagist.org/packages/ilias/opherator)[![Source Code](https://camo.githubusercontent.com/292d615a59954b287363d95c610a390fe421e5692aca3ec591d9870aa3a6f2a0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d696c6f656c6961732f6f7068657261746f722d626c75652e737667)](https://github.com/iloElias/opherator)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)

This PHP router system allows you to define and manage your application's routes in a simple and organized manner, inspired by Laravel's routing system.

Installation
------------

[](#installation)

To install the package, add it to your `composer.json` file:

```
{
  "require": {
    "ilias/opherator": "1.0.0"
  }
}
```

Or simply run the terminal command

```
composer require ilias/opherator
```

Then, run the following command to install the package:

```
composer install
```

Usage
-----

[](#usage)

### Step 1: Setup The Handler

[](#step-1-setup-the-handler)

Create a file to define your routes, for example, in your project root folder, `routes.php`:

```
