PHP code example of biberltd / phorient

1. Go to this page and download the library: Download biberltd/phorient library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

biberltd / phorient example snippets


$this->cm = new ClassManager($containerInterface);
$this->cm->setEntityPath('AppBundle','\\AppBundle\\Entity\\');
$this->cm->createConnection('Dbname');


$config = array(
  'database' => array(
    'Dbname' => array(
      'username'=>'root',
      'password'=>'root',
      'hostname'=>'localhost',
      'port'=>2424,
      'token'=>null
     )
  )
);
$this->cm = new ClassManager();
$this->cm->setEntityPath('AppBundle','\\AppBundle\\Entity\\');
$this->cm->createConnection('Dbname',$config);