定制 ctsoft/laravel-letter-xpress 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固