PHPackages                             ozziest/patika - 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. ozziest/patika

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

ozziest/patika
==============

Simple PHP routing library.

1.1.1(10y ago)740MITPHP

Since Sep 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ozziest/patika)[ Packagist](https://packagist.org/packages/ozziest/patika)[ Docs](https://github.com/ozziest/patika)[ RSS](/packages/ozziest-patika/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Patika
------

[](#patika)

[![Build Status](https://camo.githubusercontent.com/35e4cc04a5da36e2970b0ba6e32fb2cc1074be9a82c412f3bc9ddd15af54718c/68747470733a2f2f7472617669732d63692e6f72672f6f7a7a696573742f706174696b612e737667)](https://travis-ci.org/ozziest/patika)[![Total Downloads](https://camo.githubusercontent.com/522296513413af5fbd0fc144003be915a07dc2dcb08fad6bfa885ebe62243695/68747470733a2f2f706f7365722e707567782e6f72672f6f7a7a696573742f706174696b612f642f746f74616c2e737667)](https://packagist.org/packages/ozziest/patika)[![Latest Stable Version](https://camo.githubusercontent.com/80f01d6758ae74881794a957ec08472cfa0820133fbfd24c8ad8db5c1b1c704b/68747470733a2f2f706f7365722e707567782e6f72672f6f7a7a696573742f706174696b612f762f737461626c652e737667)](https://packagist.org/packages/ozziest/patika)[![Latest Unstable Version](https://camo.githubusercontent.com/8062570c34ce4397f696e03b7717c11fa59638d8918abbeacd6962a947f14528/68747470733a2f2f706f7365722e707567782e6f72672f6f7a7a696573742f706174696b612f762f756e737461626c652e737667)](https://packagist.org/packages/ozziest/patika)[![License](https://camo.githubusercontent.com/277fdc461d135e2aebd4c281a5c91006898fb1fb54194d1ae3ce060c2b599c81/68747470733a2f2f706f7365722e707567782e6f72672f6f7a7a696573742f706174696b612f6c6963656e73652e737667)](https://packagist.org/packages/ozziest/patika)

Patika is a simple routing package that you can use easily your projects. This is small and useful package because you dont have to define all routes. You should code your controller instead of routing defination.

#### Installation

[](#installation)

To install through composer, simply put the following in your `composer.json` file:

```
{
    "require": {
        "ozziest/patika": "dev-master"
    }
}
```

```
$ composer update

```

#### Usage

[](#usage)

First of all, you should define `.htaccess` file so that handle all request and send it to `index.php` file.

`.htaccess`

```
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

```

`index.php` file must be defined like this;

```
// Including composer autoload file
include 'vendor/autoload.php';

// First of all, you should use try-catch block for handling routing errors
try {
    // You must create a new instance of Manager Class with the app argument.
    $patika = new Ozziest\Patika\Manager(['app' => 'App\Controllers']);
    // And calling the route!
    $patika->call();
} catch (Ozziest\Patika\Exceptions\PatikaException $e) {
    // If the controller or method aren't found, you can handle the error.
    echo $e->getMessage();
}
```

That's all! **Patika Router** is active now. Now, you can define your controller which what you want.

`Users.php`

```
namespace App\Controllers;

class Users {

    /**
     * All
     *
     * @return null
     */
    public function all()
    {
        echo 'App\Controllers\Users@all()';
    }

}
```

#### Checking

[](#checking)

```
$ php -S localhost:8000 index.php
$ curl -X GET localhost:8000/users/all 

```

#### Full Documentation

[](#full-documentation)

You can read the [Full Documentation](http://ozziest.github.io/patika)!

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~105 days

Total

2

Last Release

3837d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2facdc256fbb7fd57510c101c009d6adb6f5cdf07ec7c5a304d30520e78c1357?d=identicon)[ozziest](/maintainers/ozziest)

---

Top Contributors

[![ozziest](https://avatars.githubusercontent.com/u/2325140?v=4)](https://github.com/ozziest "ozziest (28 commits)")

---

Tags

phprouterrouting

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ozziest-patika/health.svg)

```
[![Health](https://phpackages.com/badges/ozziest-patika/health.svg)](https://phpackages.com/packages/ozziest-patika)
```

###  Alternatives

[wilaak/radix-router

High-performance radix tree based HTTP request router

616.0k5](/packages/wilaak-radix-router)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
