PHPackages                             vegas-cmf/dao - 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. vegas-cmf/dao

AbandonedArchivedLibrary

vegas-cmf/dao
=============

Vegas CMF DAO

v1.1.0(10y ago)0496MITPHPPHP &gt;=5.4

Since Jan 18Pushed 9y ago8 watchersCompare

[ Source](https://github.com/vegas-cmf/dao)[ Packagist](https://packagist.org/packages/vegas-cmf/dao)[ RSS](/packages/vegas-cmf-dao/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (6)Used By (0)

Vegas CMF DAO
=============

[](#vegas-cmf-dao)

[![Build Status](https://camo.githubusercontent.com/b3e3dc437c443df1ad6ff0097e067158f95490e47eec5f24903f63d0f07a2b8a/68747470733a2f2f7472617669732d63692e6f72672f76656761732d636d662f64616f2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/vegas-cmf/dao)[![Coverage Status](https://camo.githubusercontent.com/c09072794eb7e6191d99160580f049c7c60b5b7d08ef30dcfefeb851b6514968/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f76656761732d636d662f64616f2f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/vegas-cmf/dao?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/47b23a114f0ce06da0201cb2a822665b485c94dbd4b55ede3b255f101771d903/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76656761732d636d662f64616f2e737667)](https://packagist.org/packages/vegas-cmf/dao)[![Total Downloads](https://camo.githubusercontent.com/8251d04e30402483987a351c5025c10511f6905b11e4517d710eb39ee2cc80d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76656761732d636d662f64616f2e737667)](https://packagist.org/packages/vegas-cmf/dao)

DAO library adapts the Data Access Object pattern to your application.

**Installation**

Set `\Vegas\Db\Dao\Manager` class as a service by adding following snippet into your `services` directory:

```
use Phalcon\DiInterface;
use Vegas\DI\ServiceProviderInterface;

/**
 * Class DaoServiceProvider
 */
class DaoServiceProvider implements ServiceProviderInterface
{
    const SERVICE_NAME = 'dao';

    /**
     * {@inheritdoc}
     */
    public function register(DiInterface $di)
    {
        $di->set(self::SERVICE_NAME, function() use ($di) {
            $dao = new \Vegas\Db\Dao\Manager;
            return $dao->setDI($di);
        }, true);
    }

    public function getDependencies()
    {
        return [];
    }
}
```

**Example usage:**

Inside injection-aware class:

```
$modelName = '\Foo\Models\Bar';
$model = new $modelName;

$daoManager = $this->getDI()->get('dao');

/** @var \Foo\Models\Dao\Bar $dao */
$dao = $daoManager->get($modelName);
// or
$dao = $daoManager->get($model);

/** @var \Foo\Models\Bar $result */
$result = $dao->findById('example_id');

/** @var \Foo\Models\Bar[] $results */
$results = $dao->findAll();
```

For the full list of available methods please examine `\Vegas\Db\Dao\DefaultDao` class.

By default, DAO classes for specific collections/models should be placed under additional `Dao` suffix and should have the same name. e.x. for `\Foo\Models\Bar` collection a `\Foo\Models\Dao\Bar` class should be created. Currently there are no additional requirements for the class implementation.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

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 ~97 days

Total

5

Last Release

3377d ago

Major Versions

v1.1.x-dev → v2.0.0-beta2016-06-03

v2.0.x-dev → v3.0.x-dev2017-02-08

PHP version history (3 changes)v1.1.0PHP &gt;=5.4

v2.0.0-betaPHP &gt;=5.5

v3.0.x-devPHP ^5.5 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/48bf631edf58dd900709093af96ad59b7b40c1b3e32b2d4406591309a1d07db4?d=identicon)[vegas](/maintainers/vegas)

---

Top Contributors

[![archdevil666pl](https://avatars.githubusercontent.com/u/2486875?v=4)](https://github.com/archdevil666pl "archdevil666pl (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[stanislav-web/phalcon-sms-factory

Multiple gateway SMS Sender factory. Provide any SMS services inside your Phalcon's projects

321.6k](/packages/stanislav-web-phalcon-sms-factory)

PHPackages © 2026

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