PHP code example of webmavens / laravel-faxage

1. Go to this page and download the library: Download webmavens/laravel-faxage 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/ */

    

webmavens / laravel-faxage example snippets


FAXAGE_USERNAME=YOUR_FAXAGE_USERNAME
FAXAGE_PASSWORD=YOUR_FAXAGE_PASSOWRD
FAXAGE_COMPANY_ID=YOUR_COMPANY_ID
FAXAGE_FAXNO=YOUR_FAXNO
FAXAGE_URL_NOTIFY=CALLBACK_URL
FAXAGE_TAG_NUMBER=YOUR_TAG_NUMBER (EX. 1.123.123.1234)

$laravelFaxage = new Webmavens\LaravelFaxage();
$response = $laravelFaxage->sendFax($params);

recipname = DESTINATION_NAME
faxno = DESTINATION_NUMBER
faxfilenames = FAX_FILE_NAME
faxfiledata = FAX_FILE_DATA
opration = 'sendfax'

$laravelFaxage = new Webmavens\LaravelFaxage();
$response = $laravelFaxage->sendFax($params);

recipname = DESTINATION_NAME
faxno = DESTINATION_NUMBER
faxfilenames = FAX_FILE_NAME
faxfiledata = FAX_FILE_DATA
opration = 'resend'
jobid = FAX_JOB_ID

$laravelFaxage = new Webmavens\LaravelFaxage();
$response = $laravelFaxage->listFax();

$laravelFaxage = new Webmavens\LaravelFaxage();
$faxId = FAX_ID
$response = $laravelFaxage->getFax($faxId);

$laravelFaxage = new Webmavens\LaravelFaxage();
$faxId = FAX_ID
$response = $laravelFaxage->notifyFaxage($faxId);