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

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

neos/data
=========

Data componentes (configuration, databases, etc)

1951PHP

Since Apr 17Pushed 12y agoCompare

[ Source](https://github.com/pedra/Data)[ Packagist](https://packagist.org/packages/neos/data)[ RSS](/packages/neos-data/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (1)

Config
======

[](#config)

Config for Start PHP

\[2014/01/30\] add data base access point by PDO.

Examples
========

[](#examples)

**Composer install:**

Add this in your composer.json:

```
"require": {
    "neos/data": "dev-master"
}

```

Now, type in terminal:

```
$ composer update

```

**Optional condition to make things easier!**

*Type it in your index.php or bootstrap file:*

```
class_alias('Neos\Data\Config', 'o');
class_alias('Neos\Data\Conn', 'DB');

```

*Or, in class with namespaces, type (in top):*

```
use Neos\Data\Config as o;
use Neos\Data\Conn as DB;

```

**Configurations**

```
//loading config file
o::load('path/to/config.ini');

```

*get and set config itens*

```
//simple get node
print_r(o::item());

//get item
print_r(o::get('item'));

//set new value
o::set('item', [mixed] value);

```

*saving the configuration file*

```
o::save();
//or
o::save('path/to/copy/config.ini');

```

**Data Base**

```
$value = 01;
$db = (new DB())->query('SELECT * FROM Table WHERE FielN = :value', ['value'=>$value]);

//Dump
print_r($db->getLine(0));

```

**Setting Alias for a connection database**

***in Config.ini***

```
[db]
default = "dev";

dev[type] = "mysql";
dev[host] = "localhost";
dev[user] = "user";
dev[password] = "*******";
dev[database] = "database";
dev[charset] = "utf8";

other[type] = "sqlite";
other[database] = PPHP"app.db";

```

***PHP script***

```
$db = new DB(); //connecting in a default database (dev)
//or
$db = DB('other'); //for connect in 'other' (sqlite)

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.5% 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/1afbdaef1e7a22a196a765229a8664640c368682e8af063815df3813ccfa3df7?d=identicon)[pedra](/maintainers/pedra)

---

Top Contributors

[![pedra](https://avatars.githubusercontent.com/u/4870358?v=4)](https://github.com/pedra "pedra (19 commits)")[![supremacia](https://avatars.githubusercontent.com/u/16003817?v=4)](https://github.com/supremacia "supremacia (2 commits)")

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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