1. Go to this page and download the library: Download nodev/mutaku 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/ */
nodev / mutaku example snippets
Nodev\Mutaku\Config;
Config::initialize(); // Load dari .env
// atau
Config::load([
'authToken' => 'your_auth_token_here',
'accountUsername' => 'your_username_here',
]);
use Nodev\Mutaku\Core;
$result = Core::getMutations([
'fromDate' => '01-01-2025', // Tanggal awal mutasi
'toDate' => '31-01-2025', // Tanggal akhir mutasi
'page' => 1, // Page
'filterOut' => true // Hanya menampilkan status transaksi IN
]);
if ($result['error']) {
echo "Error: " . $result['message'];
} else {
echo "Data: " . json_encode($result['data']);
}