PHPackages                             vegas-cmf/database-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. [Database &amp; ORM](/categories/database)
4. /
5. vegas-cmf/database-router

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

vegas-cmf/database-router
=========================

Vegas CMF Database router

v3.0.x-dev(8y ago)091MITPHPPHP ^5.5 || ^7.0

Since May 17Pushed 8y ago4 watchersCompare

[ Source](https://github.com/vegas-cmf/database-router)[ Packagist](https://packagist.org/packages/vegas-cmf/database-router)[ RSS](/packages/vegas-cmf-database-router/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

Vegas CMF Database router
=========================

[](#vegas-cmf-database-router)

INSTALL AT A NEW PROJECT
------------------------

[](#install-at-a-new-project)

- use `Vegas\Mvc\Router\Adapter\Mongo` adapter in `Bootstrap::initRoutes`
- register `databaseRouteManager` service
- add `route` config in Module

```
return [
    'routes' => [
        'route_name' => [
            'module'     => 'ModuleName',
            'controller' => 'Frontend\ControllerName',
            'action'     => 'index',
        ],
    ]
];

```

- create new route

```
$routeManager = $this->getDI()->get('databaseRouteManager');
$routeManager->update('route_name', PAGE_OBJECT_ID, /URL);

```

TEST OLD-SCHOOL
---------------

[](#test-old-school)

```
cp ./tests/config.php.sample ./tests/config.php
composer install
php ./vendor/bin/phpunit -c tests/phpunit.xml

```

TEST DOCKER
-----------

[](#test-docker)

```
cp ./tests/config.php.sample ./tests/config.php
yake composer install
yake up
yake phpunit -c tests/phpunit.xml

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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

3214d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46222392?v=4)[vegas](/maintainers/vegas)[@vegas](https://github.com/vegas)

---

Top Contributors

[![krzysztof-kabala](https://avatars.githubusercontent.com/u/14938745?v=4)](https://github.com/krzysztof-kabala "krzysztof-kabala (8 commits)")[![archdevil666pl](https://avatars.githubusercontent.com/u/2486875?v=4)](https://github.com/archdevil666pl "archdevil666pl (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vegas-cmf-database-router/health.svg)

```
[![Health](https://phpackages.com/badges/vegas-cmf-database-router/health.svg)](https://phpackages.com/packages/vegas-cmf-database-router)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[michele-angioni/phalcon-repositories

A library which simplifies the use of the Repository pattern in Phalcon.

2124.7k](/packages/michele-angioni-phalcon-repositories)

PHPackages © 2026

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