Skip to content

Some useful Codeigniter libraries: Nexmo CodeIgniter, CSV Export CodeIgniter

Notifications You must be signed in to change notification settings

radoneman/codeigniter-libraries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Codeigniter Libraries

Some useful Codeigniter libraries

Nexmo - Send text or voice messages using Nexmo API.

CSV - Export data as CSV with columns headers

##1. Nexmo## Send text or voice messages using Nexmo API.

Get phone type (mobile, landline, virtual)

Check is a phone number is from a mobile carier

###How To### Set your Nexmo credentials in config/nexmo.php

$this->load->library(['nexmo']);

// send_sms
$response = $this->nexmo->send_sms([
    'to' => '1234567890', // International or US phone number (10 digits)
    'text' => 'hello world'
]);
if ($response === false) {
    echo '<h1>Error</h1>';
    var_dump($this->nexmo->get_error());
} else {
    echo '<h1>Success</h1>';
    var_dump($response);
}

##2.CSV## Export data as CSV with columns headers

Allows the export of large data sets by calling the methods: open, put (in a loop), close

About

Some useful Codeigniter libraries: Nexmo CodeIgniter, CSV Export CodeIgniter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages