2017 © Pedro Peláez
 

library inetworx-client

Inetworx SMS API Client

image

strebl/inetworx-client

Inetworx SMS API Client

  • Monday, May 15, 2017
  • by strebl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Very short description of the package

Latest Version on Packagist Build Status StyleCI SensioLabsInsight Quality Score Total Downloads, (*1)

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., (*2)

Installation

You can install the package via composer:, (*3)

composer require strebl/inetworx-client

Laravel

If you are using Laravel, you can register the service provider:, (*4)

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

To publish the config file to config/inetworx.php run (optional):, (*5)

php artisan vendor:publish --provider="Strebl\Inetworx\InetworxServiceProvider"

If you are using Laravel, you can register the service provider:, (*6)

'aliases' => [
    // ...
    'Inetworx' => Strebl\Inetworx\InetworxFacade::class,
];

Set the environment variables with the correct values:, (*7)

INETWORX_AUTH_HEADER_USERNAME=null
INETWORX_AUTH_HEADER_PASSWORD=null

INETWORX_API_USERNAME=null
INETWORX_API_PASSWORD=null

Usage

With Laravel

``` php $skeleton = app(Strebl\Inetworx::class); $sms->send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);, (*8)


Or you can use the Facade: ``` php \Inetworx::send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);

Without Laravel

``` php $sms = new Strebl\Inetworx( $authHeaderUsername, $authHeaderPassword, $apiUsername, $apiPassword, ); $sms->send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);, (*9)


### Send a SMS ``` php $sms->send($to, $message, $from);

Get the remaining SMS credits

``` php $sms->credit();, (*10)


## Changelog Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING for details., (*11)

Security

If you discover any security related issues, please email manuel@strebel.xyz instead of using the issue tracker., (*12)

Credits

License

The MIT License (MIT). Please see License File for more information., (*13)

The Versions

15/05 2017

dev-master

9999999-dev https://github.com/strebl/inetworx-client

Inetworx SMS API Client

  Sources   Download

MIT

The Requires

 

The Development Requires

inetworx inetworx-client

15/05 2017

v1.0.1

1.0.1.0 https://github.com/strebl/inetworx-client

Inetworx SMS API Client

  Sources   Download

MIT

The Requires

 

The Development Requires

inetworx inetworx-client

12/05 2017

v1.0

1.0.0.0 https://github.com/strebl/inetworx-client

Inetworx SMS API Client

  Sources   Download

MIT

The Requires

 

The Development Requires

inetworx inetworx-client