2017 © Pedro Peláez
 

library orientdb-php

PHP Wrapper for the Orientdb database (REST)

image

sgpatil/orientdb-php

PHP Wrapper for the Orientdb database (REST)

  • Monday, May 29, 2017
  • by sumit_2803
  • Repository
  • 1 Watchers
  • 3 Stars
  • 464 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

Orientdb-php

Author: Sumit Patil sgpatil.2803@gmail.com
Copyright (c) 2014-2015, (*1)

PHP Wrapper for the Orientdb graph database REST interface, (*2)

Installation

Add the package to your composer.json, (*3)

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

Connection


$client = new Sgpatil\Orientphp\Client(<server>, <port>, <database_name>); $client->getTransport() ->setAuth(<database_user_name>, <database_password>);

If you are using default configuration then the code should be, (*4)


$client = new Sgpatil\Orientphp\Client("localhost", 2480, <database_name>); $client->getTransport() ->setAuth('root', 'root');

To check database connection., (*5)

print_r($client->getServerInfo());

This will display server information., (*6)


Create Class

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

Supporting Datatype

Commands
$property->short('<field_name>');
$property->integer('<field_name>');
$property->long('<field_name>');
$property->byte('<field_name>');
$property->boolean('<field_name>');
$property->float('<field_name>');
$property->double('<field_name>');
$property->datetime('<field_name>');
$property->date('<field_name>');
$property->timestamp('<field_name>');
$property->string('<field_name>');
$property->binary('<field_name>');
$property->embedded('<field_name>');
$property->embeddedlist('<field_name>');
$property->embeddedset('<field_name>');
$property->link('<field_name>');
$property->linklist('<field_name>');
$property->linkset('<field_name>');
$property->linkmap('<field_name>');
$property->linkbag('<field_name>');
$property->custom('<field_name>');
$property->any('<field_name>');

The Versions

29/05 2017

dev-master

9999999-dev

PHP Wrapper for the Orientdb database (REST)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Sumit Patil

database graph orientdb php orientdb driver

12/02 2016

v0.0.3

0.0.3.0

PHP Wrapper for the Orientdb database (REST)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Sumit Patil

database graph orientdb php orientdb driver

12/02 2016

dev-dev

dev-dev

PHP Wrapper for the Orientdb database (REST)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

by Sumit Patil

database graph orientdb php orientdb driver

08/05 2015

v0.0.2

0.0.2.0

PHP Wrapper for the Orientdb database (REST)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Sumit Patil

database graph orientdb php orientdb driver

14/04 2015

v0.0.1

0.0.1.0

PHP Wrapper for the Orientdb database (REST)

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Sumit Patil

database graph orientdb php orientdb driver