/emu-client

Export data from EMu Collection Management System via the IMu API.

Primary LanguagePHP

Emu Client

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 Setup

composer require imamuseum/emu-client

Basic Usage

use Imamuseum\EmuClient\EmuExport;

require_once __DIR__ . '/../vendor/autoload.php';

$config = require_once 'path/to/config/emu-client.php';

$emu = new EmuExport($config);
$emu->saveJsonFiles();

Laravel Usage

Service Provider

In config\app.php add to the autoloaded providers -

Imamuseum\EmuClient\EmuClientServiceProvider::class,

Publish Config

php artisan vendor:publish

Now you can set-up your emu-client in config\emu-client.php.

Environmental Variables

Add to your .env:

EMU_HOST=hostname
EMU_PORT=40000

Artisan Command

php artisan emu:export

Will output chunked json files to the directory defined as your export_path.