2017 © Pedro Peláez
 

library interfax

Very simple client for InterFax SOAP API

image

iivannov/interfax

Very simple client for InterFax SOAP API

  • Friday, May 20, 2016
  • by iivannov
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1,836 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

InterFax Client

Very simple client for InterFax SOAP API. For the moment it supports only sending simple text faxes and sending faxes with file attachment. It's easily extensible to add other InterFax methods., (*1)

Install

Via Composer, (*2)

``` bash $ composer require iivannov/interfax, (*3)


## Usage ``` bash $interfax = new InterFax($username, $password); //send a text $message to the given $number $interfax->sendText($number, $message); //send a fax with file attachment to the given $number $interfax->sendFile($number, $filePath, $fileType);

Usage with Laravel

If you are using Laravel, the package contains a Service Provider and a Facade for you., (*4)

  1. First you need to add the ServiceProvider and Facade classes in your config\app.php

``` php 'providers' => [ ... Iivannov\Interfax\Support\InterFaxServiceProvider::class, ];, (*5)

'aliases' => [ ... 'Interfax' => Iivannov\Interfax\Support\Facade\InterFax::class ];, (*6)


2. Then you need to add your username and password in `config\services.php` ``` php 'interfax' => [ 'username' => YOUR_INTERFAX_USERNAME, 'password' => YOUR_INTERFAX_PASSWORD ]
  1. You are ready to go, just use it like this

``` php //send a text $message to the given $number Interfax::sendText($number, $message);, (*7)

//send a fax with file attachment to the given $number Iterfax::sendFile($number, $filePath, $fileType);, (*8)

```, (*9)

The Versions

20/05 2016

dev-master

9999999-dev

Very simple client for InterFax SOAP API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Ivan Ivanov

php client interfax send fax