Works with the IMu API for PHP v2.0 - http://imu.mel.kesoftware.com/doc/api/php/index.html
This package will work independently of the Laravel Framework.
composer require imamuseum/emu-clientuse Imamuseum\EmuClient\EmuExport;
require_once __DIR__ . '/../vendor/autoload.php';
$config = require_once 'path/to/config/emu-client.php';
$emu = new EmuExport($config);
$emu->saveJsonFiles();
In config\app.php add to the autoloaded providers -
Imamuseum\EmuClient\EmuClientServiceProvider::class,php artisan vendor:publishNow you can set-up your emu-client in config\emu-client.php.
Add to your .env:
EMU_HOST=hostname
EMU_PORT=40000
php artisan emu:exportWill output chunked json files to the directory defined as your export_path.