PHPackages                             yapro/doctrine2-orientdb-restful-driver - 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. yapro/doctrine2-orientdb-restful-driver

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

yapro/doctrine2-orientdb-restful-driver
=======================================

Doctrine2 PHP RESTful driver for OrientDB graph database.

432PHP

Since Jun 11Pushed 11y ago3 watchersCompare

[ Source](https://github.com/yapro/doctrine2-orientdb-restful-driver)[ Packagist](https://packagist.org/packages/yapro/doctrine2-orientdb-restful-driver)[ RSS](/packages/yapro-doctrine2-orientdb-restful-driver/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Doctrine2 RESTful-driver for OrientDB
=====================================

[](#doctrine2-restful-driver-for-orientdb)

System requirements
-------------------

[](#system-requirements)

Install orientDB v.1.7 from branch develop. Last cheked this version on:

```
commit 4f3aba5faa6a404367aea41e3fbab3dbe7c06da4
Author: enisher
Date:   Thu May 15 23:33:51 2014 +0300

```

To work with database, you must perform actions described below.

Start the database (complete path):

```
$ /var/www/orientDB/bin/server.sh

```

if you receive an error:

```
java: command not found

```

install java, example java 1.7.0\_45. You can confirm the version command:

```
$ java -version

```

Setup
-----

[](#setup)

1. In file /app/config/config.yml replace string:

    driver: %database\_driver%

on this string:

```
driver_class:   OrientDB\Driver

```

2. Change you settings for connect to database in file:

    /app/config/parameters.yml

for example default settings:

```
parameters:
    database_driver: pdo_mysql
    database_host: localhost
    database_port: 2480
    database_name: GratefulDeadConcerts
    database_user: admin
    database_password: admin
    mailer_transport: smtp
    mailer_host: 127.0.0.1
    mailer_user: null
    mailer_password: null
    locale: en
    secret: ThisTokenIsNotSoSecretChangeIt

```

3. Add following code into your composer.json

```
      "require": {
          ...
          "yapro/doctrine2-orientdb-restful-driver": "dev-master"
      },

```

and run command:

```
$ composer update yapro/doctrine2-orientdb-restful-driver --prefer-source

```

All ready.

How use it
----------

[](#how-use-it)

1. Create you entities classes (php files) with PHPDoc annotations for field rid, example:

```
/**
 * @ORM\Id
 * @ORM\Column(type="bigint", name="@rid")
 * @ORM\GeneratedValue(strategy="IDENTITY")
 */
private $rid = 0;

```

2. Run console command for create/update you entities:

    $ php app/console doctrine:schema:update --force

If you delete entity class, this command not delete class(table) in OrientDB. If you need this action, please delete class(table) in OrientDB with command:

```
orientdb {YouDatabase}> drop class YouEntityName

```

UnitTest
--------

[](#unittest)

You can check you fix (or features) with next command:

```
$ bin/phpunit -c app vendor/yapro/doctrine2-orientdb-restful-driver/Tests/Crud.php --env=dev

```

Help
----

[](#help)

You Entity Schemas, Doctrine getting and compare in \\Doctrine\\ORM\\Tools\\SchemaTool::getUpdateSchemaSql

```
$fromSchema - schemas from you database

$toSchema - schemas from you classes

```

If there is a desire to practice with queries, connect the console client to the database:

```
$ /var/www/orientDB/bin/console.sh

orientdb> connect remote:localhost root You_password ( from file config/orientdb-server-config.xml )

```

If you are in console client and created class(table) in OrientDB with RESTful driver, you may need to see this update in orientDB console. For this action, please run:

```
orientdb {YouDatabase}> reload schema

```

and than:

```
orientdb {YouDatabase}> info

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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://www.gravatar.com/avatar/b05d477ebab02bae019ebde0a8fb3f7977660258439f03a0cbc38ed8bc948435?d=identicon)[Lebnik](/maintainers/Lebnik)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/yapro-doctrine2-orientdb-restful-driver/health.svg)

```
[![Health](https://phpackages.com/badges/yapro-doctrine2-orientdb-restful-driver/health.svg)](https://phpackages.com/packages/yapro-doctrine2-orientdb-restful-driver)
```

###  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)
