PHP code example of onema / nexmo-cli

1. Go to this page and download the library: Download onema/nexmo-cli library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

onema / nexmo-cli example snippets


#!/usr/bin/env php

// app/console
set_time_limit(0);

Cli\Command\TtsCommand;
use Onema\NexmoCli\Command\SmsCommand;

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

shell
php composer.phar