PHPackages                             sgpatil/orientdb-php - 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. sgpatil/orientdb-php

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

sgpatil/orientdb-php
====================

PHP Wrapper for the Orientdb database (REST)

v0.0.3(10y ago)457733MITPHPPHP &gt;=5.3.0

Since Apr 14Pushed 8y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (5)Used By (3)

Orientdb-php
============

[](#orientdb-php)

Author: Sumit Patil
Copyright (c) 2014-2015

PHP Wrapper for the Orientdb graph database REST interface

- [Installation](#installation)
- [Database Connection](#connection)

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

[](#installation)

Add the package to your `composer.json`

```
{
    "require": {
        "sgpatil/orientdb-php": "dev-master"
    }
}
```

Connection
----------

[](#connection)

```
$client = new Sgpatil\Orientphp\Client(, , );

$client->getTransport()
       ->setAuth(, );
```

If you are using default configuration then the code should be

```
$client = new Sgpatil\Orientphp\Client("localhost", 2480, );

$client->getTransport()
       ->setAuth('root', 'root');
```

To check database connection.

```
print_r($client->getServerInfo());
```

This will display server information.

---

Create Class
------------

[](#create-class)

```
 $user = $client->makeClass("User", function($property){
        $property->string("name");
        $property->integer("age");
        $property->timestamp("datetime");
    })->save();
```

### Supporting Datatype

[](#supporting-datatype)

Commands$property-&gt;short('&lt;field\_name&gt;');$property-&gt;integer('&lt;field\_name&gt;');$property-&gt;long('&lt;field\_name&gt;');|
|$property-&gt;byte('&lt;field\_name&gt;'); |$property-&gt;boolean('&lt;field\_name&gt;'); |
|$property-&gt;float('&lt;field\_name&gt;'); |$property-&gt;double('&lt;field\_name&gt;'); |
|$property-&gt;datetime('&lt;field\_name&gt;'); |$property-&gt;date('&lt;field\_name&gt;'); |$property-&gt;timestamp('&lt;field\_name&gt;'); |
|$property-&gt;string('&lt;field\_name&gt;'); |$property-&gt;binary('&lt;field\_name&gt;'); |
|$property-&gt;embedded('&lt;field\_name&gt;'); |$property-&gt;embeddedlist('&lt;field\_name&gt;'); |$property-&gt;embeddedset('&lt;field\_name&gt;'); |
|$property-&gt;link('&lt;field\_name&gt;'); |$property-&gt;linklist('&lt;field\_name&gt;'); |$property-&gt;linkset('&lt;field\_name&gt;'); |$property-&gt;linkmap('&lt;field\_name&gt;'); |$property-&gt;linkbag('&lt;field\_name&gt;'); |
|$property-&gt;custom('&lt;field\_name&gt;'); |$property-&gt;any('&lt;field\_name&gt;');

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.8% 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 ~152 days

Total

3

Last Release

3749d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22adb4a0213caf51ceafaf6a89662a08ecdd9cc4cdd7b71a4181c807f3216864?d=identicon)[sumit\_2803](/maintainers/sumit_2803)

---

Top Contributors

[![jadell](https://avatars.githubusercontent.com/u/237266?v=4)](https://github.com/jadell "jadell (285 commits)")[![kevinc13](https://avatars.githubusercontent.com/u/6099578?v=4)](https://github.com/kevinc13 "kevinc13 (11 commits)")[![huafu](https://avatars.githubusercontent.com/u/1162602?v=4)](https://github.com/huafu "huafu (8 commits)")[![alexbilbie](https://avatars.githubusercontent.com/u/77991?v=4)](https://github.com/alexbilbie "alexbilbie (7 commits)")[![codingjoe](https://avatars.githubusercontent.com/u/1772890?v=4)](https://github.com/codingjoe "codingjoe (6 commits)")[![pin-cnx](https://avatars.githubusercontent.com/u/10082757?v=4)](https://github.com/pin-cnx "pin-cnx (5 commits)")[![jakewins](https://avatars.githubusercontent.com/u/182752?v=4)](https://github.com/jakewins "jakewins (4 commits)")[![lphuberdeau](https://avatars.githubusercontent.com/u/444229?v=4)](https://github.com/lphuberdeau "lphuberdeau (3 commits)")[![mitom](https://avatars.githubusercontent.com/u/3754515?v=4)](https://github.com/mitom "mitom (3 commits)")[![rado-h](https://avatars.githubusercontent.com/u/1043717?v=4)](https://github.com/rado-h "rado-h (3 commits)")[![tinsley](https://avatars.githubusercontent.com/u/1353037?v=4)](https://github.com/tinsley "tinsley (2 commits)")[![sgpatil](https://avatars.githubusercontent.com/u/9293512?v=4)](https://github.com/sgpatil "sgpatil (2 commits)")[![flip111](https://avatars.githubusercontent.com/u/2244480?v=4)](https://github.com/flip111 "flip111 (2 commits)")[![chrisramakers](https://avatars.githubusercontent.com/u/562866?v=4)](https://github.com/chrisramakers "chrisramakers (1 commits)")[![wwwdata](https://avatars.githubusercontent.com/u/818880?v=4)](https://github.com/wwwdata "wwwdata (1 commits)")[![mavimo](https://avatars.githubusercontent.com/u/43941?v=4)](https://github.com/mavimo "mavimo (1 commits)")

---

Tags

databaseorientdbgraphPHP Orientdb Driver

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sgpatil-orientdb-php/health.svg)

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

###  Alternatives

[vinelab/neoeloquent

Laravel wrapper for the Neo4j graph database REST interface

65393.1k1](/packages/vinelab-neoeloquent)[stefanak-michal/bolt

PHP library to provide connectivity to graph database over TCP socket with Bolt specification

79655.8k8](/packages/stefanak-michal-bolt)[graphaware/neo4j-common

Common Utilities library for Neo4j

24876.2k24](/packages/graphaware-neo4j-common)[neo4j/neo4j-bundle

Symfony integration for Neo4j

8272.1k](/packages/neo4j-neo4j-bundle)[ulobby/neoeloquent

Laravel wrapper for the Neo4j graph database REST interface

4473.4k](/packages/ulobby-neoeloquent)[laravel-freelancer-nl/aranguent

Laravel bridge for the ArangoDB Multi-model database

517.0k](/packages/laravel-freelancer-nl-aranguent)

PHPackages © 2026

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