rc2c / the-callr-bundle
TheCallR SDK bundle for Symfony2.
Installs: 144
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.2.0
This package is not auto-updated.
Last update: 2025-05-10 18:47:24 UTC
README
Prerequisites
- PHP >= 5.2.0
- The PHP JSON extension
- The PHP cURL extension
Installation
Get the bundle
With composer :
{ "require": { "rc2c/the-callr-bundle": "dev-master" } }
Initialize the bundle
To start using the bundle, register the bundle in your application's kernel class:
// app/AppKernel.php public function registerBundles() { $bundles = array( // Thecallr new Rc2c\ThecallrBundle\Rc2cThecallrBundle() // ... ); )
Configure the bundle
rc2c.the_callr.login: 'your_login' rc2c.the_callr.password: 'your_password' rc2c.the_callr.sender: 'THECALLR'
Code sample
// Load thecallr service $sms_Manager = $this->container->get('rc2c.the_callr'); // Your phone number (international format) $phone = '+33610111213'; // Your message (text) $message = 'your text message'; try { // Send sms $sms_Manager->send($phone, $message); } catch(Exception $e) { $this->logMessage($e->getCode().'-'.$e->getMessage(), 'err'); }