PHP code example of strebl / inetworx-client

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

    

strebl / inetworx-client example snippets


'providers' => [
    // ...
    Strebl\Inetworx\InetworxServiceProvider::class,
];

'aliases' => [
    // ...
    'Inetworx' => Strebl\Inetworx\InetworxFacade::class,
];
bash
php artisan vendor:publish --provider="Strebl\Inetworx\InetworxServiceProvider"
 php
$skeleton = app(Strebl\Inetworx::class);
$sms->send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);
 php
\Inetworx::send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);
 php
$sms = new Strebl\Inetworx(
    $authHeaderUsername,
    $authHeaderPassword,
    $apiUsername,
    $apiPassword,
);
$sms->send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);
 php
$sms->send($to, $message, $from);
 php
$sms->credit();