PHP code example of heydon / redback

1. Go to this page and download the library: Download heydon/redback 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/ */

    

heydon / redback example snippets

 php
$object = new RocketSoftware\u2\RedBack\uObject();
 php
$object->connect('RedBack4://127.0.0.1:8401');
 php
$object->open('EXMOD:Employee');
 php
$object->open('EXMOD:Employee', 'rbadmin', 'redback');
 php
$object = new RocketSoftware\u2\RedBack\uObject('RedBack4://127.0.0.1:8401', 'EXMOD:Employee', 'rbadmin', 'redback');
 php
$object->Name = 'Test name';
 php
$name = $object->Name;
 php
$object->ReadData();
 php
$rs = $object->Select();
 php
foreach ($rs as $key => $item) {
  echo "FirstName: {$item['FIRST.NAME']}<br/>";
}
 php
$page = $object->Select()->getPage(2);
foreach ($page as $key => $item) {
  echo "FirstName: {$item['FIRST.NAME']}<br/>";
}
 php
    $uObject = $this->get('redback');