Giter VIP home page Giter VIP logo

doluna-sms's Introduction

Doluna API SMS Sender Package

Build Status GitHub license GitHub release Scrutinizer Code Quality Latest Stable Version Latest Unstable Version Total Downloads

This is a package for sending SMS messages utilizing the Doluna SMS service API.

Requirements

  • PHP >=5.5.9

Installation

Require this package with composer: (to be completed when this will be published)

composer require spitoglou/doluna-sms

After updating composer, add the ServiceProvider to the providers array in config/app.php

'providers' => [
	//	...
	Spitoglou\SMS\SMSServiceProvider::class,
]

Copy the package config to your local config with the publish command:

php artisan vendor:publish

Usage

Example of quick (and a little dirty) implementation, right from a route closure:

Route::get('smsSend/{message}', function ($message) {
    $recipient = new \Spitoglou\SMS\SMSRecipient('306973######'); //12 digit international number here (30 stands for Greece etc.)
    return \Spitoglou\SMS\SMSClass::SMSSend($recipient, $message);
});

Configurations

Edit sms.php in the app/config directory for more configurations.

/*
     |--------------------------------------------------------------------------
     | API KEY
     |--------------------------------------------------------------------------
     |
     | You will need to provide here the API key that you can generate from
     | the Doluna site, after you have registered.
     |
     */
    
    'dolunaAPIKey' => 'YourApiKeyHere',

License

Doluna-SMS is licensed under the MIT License.

Copyright 2015 Stavros Pitoglou

doluna-sms's People

Contributors

spitoglou avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.