2017 © Pedro Peláez
 

library wrapper

Class Wrapper and library for used with OAAS Anywhere

image

anywhere/wrapper

Class Wrapper and library for used with OAAS Anywhere

  • Saturday, May 19, 2018
  • by Velliz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 196 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

anywrapper

PHP based client for Anywhere, (*1)

Latest Stable Version Total Downloads, (*2)

Add this library by executing composer command: composer require anywhere/wrapper or add this library to your composer.json, (*3)

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

since version 0.2.0 floors support was dropped to maintain library size and relevance, (*4)

Anywrapper Usage

PDF requests sample, (*5)

Always choose POST for your request URL. Because GET works without use of this library., (*6)

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

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

$pdf->Send(API_URL, false);

Email requests sample, (*7)

Always choose POST for your request URL., (*8)

$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, (*9)

$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, (*10)

made with <3 from bandung, indonesia., (*11)

The Versions

19/05 2018

dev-master

9999999-dev

Class Wrapper and library for used with OAAS Anywhere

  Sources   Download

MIT

The Requires

 

The Development Requires