Examples of crud operation with classes using redbean ORM
require_once 'class.php'; Step 2 : Create object of class Operations
$db = new Operations; - insert operation
$db->insert(string 'table_name', array $array_of_fields_to_insert);- update operations
$db->update(string 'tablename', array $array_containing_fields, int $id);- delete operations
$db->delete(string 'tablename', int $id);- select operations
$db->SelectByID(string 'tablename', int $id);