PHP code example of matt127127 / fonix

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

    

matt127127 / fonix example snippets


'Panlogic\Fonix\FonixServiceProvider',

'Fonix'    => 'Panlogic\Fonix\Facades\FonixFacade',

php artisan vendor:publish

use Panlogic\Fonix\Fonix;

$config = [
	'live_apikey' 		=> 'your-live-api-key-here',
	'test_apikey' 		=> 'your-test-api-key-here',
	'platform' 			=> 'test',
	'originator' 		=> '123456', //short code
];

$fonix = new Fonix($config);