PHPackages                             spartaksun/orientdb-entity - 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. spartaksun/orientdb-entity

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

spartaksun/orientdb-entity
==========================

Symfony2 OrientDb entity manager

191PHP

Since Aug 18Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

OrientDb entity manager
=======================

[](#orientdb-entity-manager)

Install

```
composer require spartaksun/orientdb-entity

```

Example of services.yml:

```
services:
    orient:
        class: PhpOrient\PhpOrient
        public: false
        properties:
            hostname:   'localhost'
            port:        2424
            username:   'root'
            password:   'root'
    orient.em:
        class: spartaksun\OrientDb\EntityManager
        arguments: [@orient, "your_orient_db_name"]
        properties:
            classMap:
                "Country": YourBundle\Entity\Country
```

Define entities by extending spartaksun\\OrientDb\\Entity class. Use internal validators or define your own by extending abstract spartaksun\\OrientDb\\Validators\\Validator:

```
/**
 * Country entity
 * @property $first_name
 * @property $last_name
 */
class Country extends spartaksun\OrientDb\Entity
{
    /**
     * {@inheritdoc}
     */
    public function validators()
    {
        return [
            'name' => [
                [
                    spartaksun\OrientDb\Validators\StringValidator::class,
                    ['min' => 3, 'max' => 32],
                ],
            ],
        ];
    }
}
```

Usage in Symfony2 controller:

```
$this->get('orient.em');
```

```
// Init repository
$repository = $this->get('orient.em')
        ->getRepository( Country::class );
```

```
// Get all countries
$countries = $repository->findAll();
foreach($countries as $country) {
     echo $country->name . "\n";
}
```

```
// Add new country
$country = new Country();
$country->name = 'Ukraine';
```

```
if($repository->persist($country)) {
    $rid = $country->getRid();
} else {
    var_dump($country->getErrors());
}
```

```
// find one
$country = $repository->find('name=?', 'Ukraine')
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

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://avatars.githubusercontent.com/u/6684190?v=4)[Oleksii B](/maintainers/spartaksun)[@spartaksun](https://github.com/spartaksun)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/spartaksun-orientdb-entity/health.svg)

```
[![Health](https://phpackages.com/badges/spartaksun-orientdb-entity/health.svg)](https://phpackages.com/packages/spartaksun-orientdb-entity)
```

###  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)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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