定制 anywhere/wrapper 二次开发

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

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

anywhere/wrapper

最新稳定版本:0.2.0

Composer 安装命令:

composer require anywhere/wrapper

包简介

Class Wrapper and library for used with OAAS Anywhere

README 文档

README

PHP based client for Anywhere

Latest Stable Version Total Downloads

Add this library by executing composer command: composer require anywhere/wrapper or add this library to your composer.json

"require": {
    "anywhere/wrapper": "0.2.0"
}

since version 0.2.0 floors support was dropped to maintain library size and relevance

Anywrapper Usage

PDF requests sample

Always choose POST for your request URL. Because GET works without use of this library.

$pdf = new wrapper\anywhere\Pdf(Wrapper::POST);

$pdf->setValue('Name', 'Someone');
$pdf->setValue('Age', '22');

$pdf->Send(API_URL, false);

Email requests sample

Always choose POST for your request URL.

$mail = new AnywhereMail(Wrapper::POST);

$mail->setTo('example@gmail.com');

$mail->setCc('example@outlook.com');
$mail->setBcc('example@yahoo.co.id');

$mail->setSubject('Anywhere Wrapper');

$mail->setValue('Name', 'Anywhere');
$mail->setValue('Age', '22');

$mail->setAttachment('qrcode.png', 'https://anywhere.cf/qr/render?data=admin@example.co.id');
$mail->setAttachment('qrcode1.png', 'https://anywhere.cf/qr/render?data=developer@example.co.id');

$mail->Send(API_URL, false);

Images request sample

$images = new \wrapper\anywhere\Image();
$images->setImageContentUrl('http://anywhere.test/qr/render?data=05b810384abc26a2365e1108501534a2&size=300&label=Anywhere');

$images->Send("http://anywhere.test/images/render/4f1bf2f1a5546d2d567043d14f1a14ae/1");

Extras

made with <3 from bandung, indonesia.

统计信息

  • 总下载量: 4.06k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-17