2017 © Pedro Peláez
 

library gofax

GoFax API

image

heshanh/gofax

GoFax API

  • Monday, January 29, 2018
  • by heshanh
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

GoFax SOAP PHP SDK

This SDK provides simple access to the GoFax SOAP API. It currently handles the following requests, (*1)

  • List SOAP functions
  • Get list of received faxes
  • Get fax data for a given fax

Contents

Getting started

Install the SDK into your project using Composer., (*2)

composer require heshanh/gofax

Integrating with Laravel

This package ships with a Laravel specific service provider which allows you to set your credentials from your configuration file and environment., (*3)

Registering the provider

Add the following to the providers array in your config/app.php file., (*4)

heshanh\GoFax\LaravelServiceProvider::class

Adding config keys

In your config/services.php file, add the following to the array., (*5)

'gofax'=> [
        'api_url' => env('FAX_API_URL'),
        'api_key' => env('FAX_API_KEY'),

    ]

Adding environment keys

In your .env file, add the following keys., (*6)

FAX_API_KEY=
FAX_API_URL=

Resolving a client

To resolve a client, you simply pull it from the service container. This can be done in a few ways., (*7)

Dependency Injection

use heshanh\GoFax;

public function yourControllerMethod(SoapClient $client) {
    // Call methods on $client
}

Using the app() helper

use heshanh\GoFax;

public function anyMethod() {
    $client = app(SoapClient::class);
    // Call methods on $client
}

Available methods

$client->getFunctions()

$client->getReceivedFaxes()

$client->getFaxDataFromId($faxId)

Refer to the GoFax API documentation for further information https://www.gofax.com.au/fax-api/, (*8)

Testing

Coming soon, (*9)

The Versions

29/01 2018

dev-master

9999999-dev

GoFax API

  Sources   Download

MIT

by Heshan

29/01 2018

dev-develop

dev-develop

GoFax API

  Sources   Download

MIT

by Heshan

29/01 2018

dev-release/0.0.1

dev-release/0.0.1

GoFax API

  Sources   Download

MIT

by Heshan

29/01 2018

v0.1-alpha

0.1.0.0-alpha

GoFax API

  Sources   Download

MIT

by Heshan