PHP code example of anywhere / wrapper

1. Go to this page and download the library: Download anywhere/wrapper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

anywhere / wrapper example snippets


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

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

$pdf->Send(API_URL, false);

$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 = 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");