PHPackages                             foxtool/yukon - 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. foxtool/yukon

ActiveLibrary[Framework](/categories/framework)

foxtool/yukon
=============

Simple Router

v1.0.0(1y ago)017MITPHP

Since May 19Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/FoxTool/Yukon)[ Packagist](https://packagist.org/packages/foxtool/yukon)[ RSS](/packages/foxtool-yukon/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Yukon
=====

[](#yukon)

The simple router

Define routes
-------------

[](#define-routes)

All routes define in your project root folder. Create routes.php file in the configs folder.

Example:
--------

[](#example)

```
use FoxTool\Yukon\Core\Router;

Router::get('/', 'HomeController@index');
Router::get('/sign-in', 'AuthController@index');
Router::post('/authentication', 'AuthController@authentication');
```

Class *Router* has static methods for each HTTP methods:

Example:
--------

[](#example-1)

```
Router::get(...)
Router::post(...)
Router::put(...)
Router::patch(...)
Router::delete(...)
```

Each method gets two parameters, a route string and a "controller@action" string or a closure function.

Example:
--------

[](#example-2)

```
Router::get('/', 'HomeController@index');
Router::get('/version', function() {
    echo 'v 1.0';
});
```

Routes can be grouped by common prefix

Example:
--------

[](#example-3)

```
Router::prefix('/admin')->group(function() {
    Router::get('/users', 'UserController@index');
    Router::post('/users', 'UserController@create');
    Router::get('/users/{id}', 'UserController@show');
    Router::put('/users/{id}', 'UserController@update');
    Router::delete('/users/{id}', 'UserController@delete');
});
```

In this case, we have combined routes: '/admin/user', '/admin/users/{id}' etc.

Custom Controllers
------------------

[](#custom-controllers)

Custom controllers should be created in the *app/Controller* folder and should be extended from the base controller FoxTool\\Yukon\\Core\\Controller.

Example:
--------

[](#example-4)

```
use FoxTool\Yukon\Core\Controller;

class UserController extends Controller {
    ...
}
```

Middleware (Authentication Guard)
---------------------------------

[](#middleware-authentication-guard)

Each route can be protected by the guard. Currently, implemented the guard for protecting API routes. It's the *ApiAuthMiddleware* and it uses Bearer token to check access rights.

Example:
--------

[](#example-5)

```
// Single route
Router::get('/posts', 'UserController@index')->middleware('api');

// Groups of routes
Router::prefix('/api')->group(function() {
    Router::get('/users', 'UserController@create')->middleware('api');
    Router::post('/users', 'UserController@create')->middleware('api');
    Router::put('/users/{id}', 'UserController@update')->middleware('api');
    Router::delete('/users/{id}', 'UserController@delete')->middleware('api');
});
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance53

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

409d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7370392?v=4)[Volodymyr Zakharchenko](/maintainers/wildcorsair)[@Wildcorsair](https://github.com/Wildcorsair)

---

Top Contributors

[![FoxTool](https://avatars.githubusercontent.com/u/97512309?v=4)](https://github.com/FoxTool "FoxTool (23 commits)")

### Embed Badge

![Health badge](/badges/foxtool-yukon/health.svg)

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)

PHPackages © 2026

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