<?php
require 'rb.php';
R::setup();
//for version 5.3 and higher
//optional but recommended
R::useFeatureSet( 'novice/latest' );
$post = R::dispense( 'post' );
$post->text = 'Hello World';
//create or update
$id = R::store( $post );
//retrieve
$post = R::load( 'post', $id );
//delete
R::trash( $post );