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
Install the SDK into your project using Composer.
composer require heshanh/gofaxThis package ships with a Laravel specific service provider which allows you to set your credentials from your configuration file and environment.
Add the following to the providers array in your config/app.php file.
heshanh\GoFax\LaravelServiceProvider::classIn your config/services.php file, add the following to the array.
'gofax'=> [
'api_url' => env('FAX_API_URL'),
'api_key' => env('FAX_API_KEY'),
]In your .env file, add the following keys.
FAX_API_KEY=
FAX_API_URL=
To resolve a client, you simply pull it from the service container. This can be done in a few ways.
use heshanh\GoFax;
public function yourControllerMethod(SoapClient $client) {
// Call methods on $client
}use heshanh\GoFax;
public function anyMethod() {
$client = app(SoapClient::class);
// Call methods on $client
}$client->getFunctions()
$client->getReceivedFaxes()
$client->getFaxDataFromId($faxId)
Refer to the GoFax API documentation for further information https://www.gofax.com.au/fax-api/
Coming soon