imamuseum / emu-client
Export data from EMu Collection Management System via the IMu API.
1.0.0
2016-06-09 14:26 UTC
Requires
- nesbot/carbon: ^1.21
This package is not auto-updated.
Last update: 2025-01-18 21:14:03 UTC
README
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
.