PHPackages                             sguy/easysms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sguy/easysms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sguy/easysms
============

A wrapper for sms online gh sms gateway

v1.0.1(5y ago)1200PHP

Since Sep 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nyelnizy/EasySms)[ Packagist](https://packagist.org/packages/sguy/easysms)[ RSS](/packages/sguy-easysms/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

### Description

[](#description)

EasySms is a laravel package ( a wrapper for  sms gateway) which makes it very easy to send sms in your laravel applications with little setup.
This package also comes with a notification channel that integrates very well with laravel's powerful notification system. **You may however note that smsonlinegh works only in Ghana!.**

This package is available via composer, follow the steps below to complete installation.
========================================================================================

[](#this-package-is-available-via-composer-follow-the-steps-below-to-complete-installation)

1. Run **composer require sguy/easysms**
2. Add **Sguy\\EasySms\\EasySmsServiceProvider::class,** to the providers array in app.php config file
3. Publish Config File by Running the following command **php artisan vendor:publish --tag=easysms**
4. Run **composer dump-autoload**

### Usage

[](#usage)

###  This package allows you to send sms,schedule sms, check sms balance, check the charge per sms before sending and finally using it as a channel for your notifications

[](#-this-package-allows-you-to-send-smsschedule-sms-check-sms-balance-check-the-charge-per-sms-before-sending-and-finally-using-it-as-a-channel-for-your-notifications)

#### Step One

[](#step-one)

To begin using this package, you need to create an account on  for free. You may want to buy some credits on your account to send sms (credits are very affordable). After creating your account and buying some sms credits, navigate to the **easysms.php** config file and update accordingly. easysms.php Config File
=======================

[](#easysmsphp-config-file)

The config file has just three keys ..

1. **account\_login :** add the username or email of the account you created on smsonlinegh as value for this key.
2. **account\_password :** add the password for the account you created on smsonlinegh as value for this key.
3. **sender\_id :** this is basically whom you want to send the message as, it should not be more than 11 chars else value will be trimed and firt 11 used eg. sender id can be an organization name, **Yara Ghana** or a phone number, 0543920099 .

### Step 2

[](#step-2)

[](#)

Sending simple message
======================

[](#sending-simple-message)

```
