This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
You can install the package via composer:
composer require strebl/inetworx-client
If you are using Laravel, you can register the service provider:
'providers' => [
// ...
Strebl\Inetworx\InetworxServiceProvider::class,
];
To publish the config file to config/inetworx.php
run (optional):
php artisan vendor:publish --provider="Strebl\Inetworx\InetworxServiceProvider"
If you are using Laravel, you can register the service provider:
'aliases' => [
// ...
'Inetworx' => Strebl\Inetworx\InetworxFacade::class,
];
Set the environment variables with the correct values:
INETWORX_AUTH_HEADER_USERNAME=null
INETWORX_AUTH_HEADER_PASSWORD=null
INETWORX_API_USERNAME=null
INETWORX_API_PASSWORD=null
$skeleton = app(Strebl\Inetworx::class);
$sms->send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);
Or you can use the Facade:
\Inetworx::send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);
$sms = new Strebl\Inetworx(
$authHeaderUsername,
$authHeaderPassword,
$apiUsername,
$apiPassword,
);
$sms->send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);
$sms->send($to, $message, $from);
$sms->credit();
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email manuel@strebel.xyz instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.