PHPackages                             csa12/yii2-data - 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. csa12/yii2-data

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

csa12/yii2-data
===============

Yii 2.0 database additions

09PHP

Since Oct 31Pushed 10y ago1 watchersCompare

[ Source](https://github.com/csa12/yii2-data)[ Packagist](https://packagist.org/packages/csa12/yii2-data)[ RSS](/packages/csa12-yii2-data/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yii 2.0 data additions by CSA
=============================

[](#yii-20-data-additions-by-csa)

These database additions for Yii 2.0 add certain features
for development purposes by CSA and can perhaps be of use to others.

This repository is available via . For license information check the [LICENSE](LICENSE.md)-file.

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

[](#installation)

The preferred way to install is through [composer](http://getcomposer.org/download/).

Either run

```
composer require csa12/yii2-data

```

or add

```
"csa12/yii2-data": "dev-master",
```

to the require section of your composer.json.

Usage
-----

[](#usage)

To use this extension, simply add the following code at the beginning of views/layouts/main.php or any other view file where you would like to check your database connection or table(s) existence.

```
use csa\data\Database;

...

```

And if so desired you can disable showing your content, when the database or table is not found, by adding the following code around the within views/layouts/main.php

```
...

...

```

Note
----

[](#note)

This version is still under development and not intended for use in any production evironments.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/356a4d45aa51f5b004a8117cb0bd35026e9f338fcf59b133452946949c8e93de?d=identicon)[csa12](/maintainers/csa12)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/csa12-yii2-data/health.svg)

```
[![Health](https://phpackages.com/badges/csa12-yii2-data/health.svg)](https://phpackages.com/packages/csa12-yii2-data)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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