imamuseum/emu-client
Composer 安装命令:
composer require imamuseum/emu-client
包简介
Export data from EMu Collection Management System via the IMu API.
README 文档
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.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-07