PHP code example of heshanh / gofax

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

    

heshanh / gofax example snippets


heshanh\GoFax\LaravelServiceProvider::class

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

    ]

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
}
ini
FAX_API_KEY=
FAX_API_URL=