Download the PHP package sguy/easysms without Composer

On this page you can find all versions of the php package sguy/easysms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package easysms

Description

EasySms is a laravel package ( a wrapper for https://smsonlinegh.com 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.

  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

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

Step One

To begin using this package, you need to create an account on https://smsonlinegh.com 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 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

# Sending simple message # Scheduling sms # Sending Message to multiple recipients # Checking balance and charge per sms # Notification Channel

Create a TestNotification

Use it like so

Please make sure your nofitiable entity uses the notifiable trait like so

# Testing

If you write unit tests for your functions, kindly Inject EasySms in your functions as opposed to instantiating it (You would realize EasySms was injected in all the example funtions). The reason is simply to allow you mock EasySms in your test cases.


All versions of easysms with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sguy/easysms contains the following files

Loading the files please wait ....