ctsoft/laravel-letter-xpress
Composer 安装命令:
composer require ctsoft/laravel-letter-xpress
包简介
LetterXpress connection for Laravel.
关键字:
README 文档
README
This package connects Laravel to the LetterXpress API.
Install
Install this package via Composer:
composer require ctsoft/laravel-letter-xpress
Add the following lines to your .env file and insert your own API credentials:
LETTER_XPRESS_API_USER=[username]
LETTER_XPRESS_API_KEY=[apikey]
If you want to use the sandbox add this line to your .env file:
LETTER_XPRESS_API_URL=https://sandbox.letterxpress.de/v1/
Usage
To set a new job:
use CTSoft\Laravel\LetterXpress\Facades\LetterXpress; use CTSoft\Laravel\LetterXpress\Models\Letter; $letter = (new Letter()) ->setFile('document.pdf') // Use one of this functions ->setDocument('PDF BINARY STRING') // to set the document ->setColor(true) ->setDuplex(true); ... $letter = LetterXpress::setJob($letter); echo $letter->getJobId(); echo $letter->getPrice(); ...
Notes
- Currently only set of a new job is supported
- Feel free to make a PR for additional features or ask for it via an issue
Security
If you discover any security related issues, please email security@ctsoft.de instead of using the issue tracker.
License
This package is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 187
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-05