1. Go to this page and download the library: Download peledies/rhonda 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/ */
peledies / rhonda example snippets
" "peledies/rhonda": "~1"
}
\Rhonda\Autoload::path(__DIR__."/path/to/load/");
$load = new \Rhonda\Autoload();
$load->path(__DIR__."/path/to/load/");
\Rhonda\UUID::create();
$uuid = new \Rhonda\UUID();
$uuid->create();
\Rhonda\Request::packager();
# GET parameters
$thing = \Rhonda\Request::get();
# GET specific query string value
$thing = \Rhonda\Request::get('string');
# POST body
$thing = \Rhonda\Request::post();
\Rhonda\RequestBody::get();
$request_body = new \Rhonda\RequestBody();
$request_body->get();
$request_body = new \Rhonda\RequestBody();
$request_body->get(TRUE);
\Rhonda\Response::package($data);
$response_package = new \Rhonda\Response($data);
$response_package->package();
echo \Rhonda\Success:: create();
$msg = new \Rhonda\Success();
echo $msg->create();
$headers = new \Rhonda\Headers();
$headers->getallheaders();
$string = "that's all folks";
$string = \Rhonda\Mysql::real_escape($string);
$object = new \stdClass();
$object->thing = "it's for real";
$object = \Rhonda\Mysql::real_escape($object);
$array = array(
"ray"=>"it's escaping arrays"
, "ray2"=>"escape's this one too"
);
$array = \Rhonda\Mysql::real_escape($ray);
$value = \Rhonda\Mysql:: bool_to_string('true');
OR
$mysql = new \Rhonda\Mysql();
$value = $mysql->bool_to_string('true');
// Load your configuration file to memory
\Rhonda\Config:: load_file('system', 'path/to/file.json');
// Register your service name
\Rhonda\ServiceChain:: register();
// Register your service name
\Rhonda\ServiceChain:: register('Service-Name');