heshanh / gofax
GoFax API
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/heshanh/gofax
This package is not auto-updated.
Last update: 2025-10-26 01:34:21 UTC
README
This SDK provides simple access to the GoFax SOAP API. It currently handles the following requests
- 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.
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.
Registering the provider
Add the following to the providers array in your config/app.php file.
heshanh\GoFax\LaravelServiceProvider::class
Adding config keys
In your config/services.php file, add the following to the array.
'gofax'=> [ 'api_url' => env('FAX_API_URL'), 'api_key' => env('FAX_API_KEY'), ]
Adding environment keys
In your .env file, add the following keys.
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.
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/
Testing
Coming soon