2017 © Pedro Peláez
 

library nexmo-cli

Send SMS and Voice messages from the command line using the Nexmo API

image

onema/nexmo-cli

Send SMS and Voice messages from the command line using the Nexmo API

  • Friday, May 23, 2014
  • by onema
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

nexmo-cli

Send SMS and Voice messages from the command line using the Nexmo API, (*1)

Installation

php composer.phar require onema/nexmo-cli:1.0.*@dev

Configuration

From the project root create a the following file app/config/parameters.yml, (*2)

#app/config/parameters.yml
parameters:
    nexmo:
        api_key: APIKey
        api_secret: APISecret
        account_from_number: AccountPhoneNumber

Use

Create a console file in the location of your choice. I will create it in the app directory, (*3)

#!/usr/bin/env php
<?php
// app/console
set_time_limit(0);

require_once __DIR__.'/../vendor/autoload.php';

use Symfony\Component\Console\Application;
use Onema\NexmoCli\Command\TtsCommand;
use Onema\NexmoCli\Command\SmsCommand;

$application = new Application();
$application->add(new TtsCommand());
$application->add(new SmsCommand());
$application->run();

Send SMS

From the command line type the following command, (*4)

php app/console nexmo:sms [text] [phone] 

Example, (*5)

php app/console nexmo:sms 'Hello World' 1234567890

Send TTS

From the command line type the following command, (*6)

php app/console nexmo:tts [text] [phone] 

Example, (*7)

php app/console nexmo:tts 'Hello World' 1234567890

The Versions

23/05 2014

dev-master

9999999-dev http://onema.io

Send SMS and Voice messages from the command line using the Nexmo API

  Sources   Download

MIT

The Requires

 

by Juan Manuel Torres

demo console cli sms nexmo text-to-speech

23/05 2014

v1.0.0

1.0.0.0 http://onema.io

Send SMS and Voice messages from the command line using the Nexmo API

  Sources   Download

MIT

The Requires

 

by Juan Manuel Torres

demo console cli sms nexmo text-to-speech

23/05 2014

dev-develop

dev-develop http://onema.io

Send SMS and Voice messages from the command line using the Nexmo API

  Sources   Download

MIT

The Requires

 

by Juan Manuel Torres

demo console cli sms nexmo text-to-speech

22/05 2014

v0.0.1

0.0.1.0 http://onema.io

Send SMS and Voice messages from the command line using the Nexmo API

  Sources   Download

MIT

The Requires

 

by Juan Manuel Torres

demo console cli sms nexmo text-to-speech