Effective Solutions SMS Gateway Bundle For Symfony2
Install and Configure Gammu Library using following documentations., (*1)
- How to install Gammu Library
- How to Detect Your Modem
- How to Configure Gammu
Use the SMSD Configuration files inside bundle's SMSGateway/gammu-config folder for different operators. Change the port
according to your modem port number. Look at the Multiple Modems section in following link. [Gammu SMSD Configuration File]
(http://wammu.eu/docs/manual/smsd/config.html), (*2)
Now you are ready to install Effective Solutions SMS Gateway Bundle. Use the following console command., (*3)
php composer.phar require effective-solutions/sms-gateway-bundle, (*4)
After the installation add following in your AppKernel.php file, (*5)
new EffectiveSolutions\SMSGatewayBundle\EffectiveSolutionsSMSGatewayBundle(),, (*6)
Use MySQL Backend Gammu documentation for configure your
SMS Database. Change Bundle's Resources/config/parameters.yml file according to your Database settings., (*7)
In order to use SMSGatewayBundle in your code, add following lines. Enter your number as 07xxxxxxxx., (*8)
$sms_gateway = $this->get('sms_gateway');
$sms_gateway->sendSMS('your_number','your_message');, (*9)
Thank you for using Effective Solutions SMSGateway Bundle. Powered By EffectiveSolutions.lk, (*10)