Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/velliz/anywrapper
Composer based client library for Anywhere
https://github.com/velliz/anywrapper
login output
Last synced: 25 days ago
JSON representation
Composer based client library for Anywhere
- Host: GitHub
- URL: https://github.com/velliz/anywrapper
- Owner: Velliz
- License: mit
- Created: 2016-12-17T02:07:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-19T02:58:18.000Z (2 months ago)
- Last Synced: 2024-11-11T22:44:27.838Z (about 2 months ago)
- Topics: login, output
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# anywrapper
PHP based client for **Anywhere**
[![Latest Stable Version](https://poser.pugx.org/anywhere/wrapper/v/stable)](https://packagist.org/packages/anywhere/wrapper)
[![Total Downloads](https://poser.pugx.org/anywhere/wrapper/downloads)](https://packagist.org/packages/anywhere/wrapper)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.
```php
$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.
```php
$mail = new AnywhereMail(Wrapper::POST);$mail->setTo('[email protected]');
$mail->setCc('[email protected]');
$mail->setBcc('[email protected]');$mail->setSubject('Anywhere Wrapper');
$mail->setValue('Name', 'Anywhere');
$mail->setValue('Age', '22');$mail->setAttachment('qrcode.png', 'https://anywhere.cf/qr/[email protected]');
$mail->setAttachment('qrcode1.png', 'https://anywhere.cf/qr/[email protected]');$mail->Send(API_URL, false);
```**Images request sample**
```php
$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.