1. Go to this page and download the library: Download corcel/woocommerce 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/ */
$order = Order::find(1);
$order->currency; // e.g. EUR
$order->total; // e.g. 10.20
$order->tax; // e.g. 0.50
$order->shipping_tax; // e.g. 0.20
$order->status; // e.g. completed
$order->date_completed; // e.g. 2020-06-01 10:00:00
$order->date_paid; // e.g. 2020-06-01 10:00:00
$order->payment; // \Corcel\WooCommerce\Support\Payment class instance
$order->billing_address; // \Corcel\WooCommerce\Support\BillingAddress class instance
$order->shipping_address; // \Corcel\WooCommerce\Support\ShippingAddress class instance