PHP code example of mcris112 / billable
1. Go to this page and download the library: Download mcris112/billable 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/ */
mcris112 / billable example snippets
composer
//Return the Order cached and ready to use
$order = Order::get('9b3731fd-290d-4fbd-ab99-3d675080c37f');
// This can use it to set as api response
$order->toResource();
$order = Order::get('9b3731fd-290d-4fbd-ab99-3d675080c37f');
/**
* Return the Order cached forever
* @param string $id
* @return self
* @throws OrderNotFoundException
*/
public static function get(string $id): self
{
...
}