PHPackages                             ccmelas/laravel-sharenet - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. ccmelas/laravel-sharenet

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

ccmelas/laravel-sharenet
========================

A Laravel Package for Sharenet

v1.0.1(8y ago)81301MITPHP

Since Jan 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ccmelas/laravel-sharenet)[ Packagist](https://packagist.org/packages/ccmelas/laravel-sharenet)[ RSS](/packages/ccmelas-laravel-sharenet/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

laravel-sharenet
================

[](#laravel-sharenet)

A Laravel Package for sending SMS using Sharenet (Nigeria only)

Installation
------------

[](#installation)

In the composer.json folder in the root of your laravel installation, add the following in the require block

```
    "ccmelas/laravel-sharenet": "1.0.*"
```

Then run:

```
composer update

```

If your project is using Laravel 5.5 upwards, you can skip the next two instructions in this section and jump straight to *Configuration*.

In the providers array of `config/app.php`, add the following line:

```
Melas\Sharenet\SharenetServiceProvider::class

```

In the aliases array of the same file, add the following:

```
'Sharenet' => Melas\Sharenet\Facades\Sharenet::class

```

Configuration
-------------

[](#configuration)

Add your Sharenet key to your .env file like so:

```
SHARENET_SECRET='XXXXX'
SHARENET_SENDER_NAME='Melas'

```

To get a Sharenet Key, visit app.sharenet.io, login or create an account if you don't have one already. On the top-right, click on your avatar and then your profile. In the developer tab, create a new `Personal Access Token`. A modal will come up with your Secret Key.

You wouldn't need to but if you wish to publish the sharenet.php config file, run the following

```
php artisan vendor:publish --provider="Melas\Sharenet\SharenetServiceProvider" --tag="config"

```

Usage
-----

[](#usage)

Here's a simple snippet showing how you can use this package

```
