2017 © Pedro Peláez
 

library atgate

This package interacts with the Africa's Taking API using their own PHP SDK.

image

lawrence615/atgate

This package interacts with the Africa's Taking API using their own PHP SDK.

  • Friday, January 20, 2017
  • by lawrence615
  • Repository
  • 1 Watchers
  • 0 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

Africa's Talking API Laravel Implementation

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

A simple Laravel package for making it easier to use the official Africa's Talking PHP gateway in your Laravel application., (*2)

Requirements

Quick Installation

Install the Package Via Composer:, (*3)

$ composer require "lawrence615/atgate:dev-master"

Add the Service Provider to your config/app.php file:, (*4)

 'providers' => [
    ...
    Mobidev\ATGate\ATGateServiceProvider::class,
    ...
 ]

Add the Facade to your config/app.php file:, (*5)

    'aliases' => [
        ...
        'AfricaTGate' => Mobidev\ATGate\Facades\AfricaTGate::class,
        ...
    ]

Publish configuration and assets, (*6)

$ php artisan vendor:publish, (*7)

Configuration

The last step of installation, $ php artisan vendor:publish, creates a config file (atgate.php) in the config directory., (*8)

Update AT credentials inside atgate.php

Update both username and api_key inside config/atgate.php., (*9)

You can generate the API Key here. You will need to create an account first, username will be the one you create an account with., (*10)

Usage in Applications

Import/use the facade in your controller, (*11)

   use AfricaTGate;
  • Default
   $response = AfricaTGate::sendSMS("0720XXXXXX", "Testing. Test SMS.");
  • With Sender Id
   $response = AfricaTGate::from('Sender_Id')->sendSMS("0720XXXXXX", "Testing. Test SMS.");

The Versions

20/01 2017

dev-master

9999999-dev

This package interacts with the Africa's Taking API using their own PHP SDK.

  Sources   Download

MIT

by Lawrence Macharia