Module for SMS integration with Framework Yii v2.0

Send SMS messages through the LabsMobile platform and the Yii Framework. v2.0. Install the LabsMobile module for Yii and in a few seconds you will be able to send SMS messages.

Requirements

  • - Yii 2.0. More info at Yii Framework.
  • - A user account with LabsMobile. Click on the link to create an account: Sign up.

Installation

1. Copy the LabsMobileSMS folder into /vendor

2. Add the following lines into your configuration file (ex. /config/web.php)

    <?php ...
'components' => [
        ...
        'sms' => [
            'class' => 'app\vendor\LabsMobileSMS\LabsMobileSMS',
            'LMaccount_username'=>'{YOUR USERNAME}',
            'LMaccount_password'=>'{YOUR PASSWORD}',
            'LMaccount_clientapi'=>'{YOUR API CLIENT}',
        ],

3. Now you can send messages with the following code:

    <?php ...
    Yii::$app->sms->send(array('to'=>'14158141829', 'message'=>'Hello world!'));

Or check the number of credits available in your account LabsMobile:

    <?php ...
    Yii::$app->sms->get_balance();


Download extension for Yii v2.0
  • contact form support

    Sign up!

    Create a user account and send your SMS messages in seconds. You will have all the functionalities and benefits in the same platform.

    Send from API and manage your account with our online application WebSMS.

    Create new account
  • Maqueens, Beauty salons recommends LabsMobile

    Appointment reminders, SMSLanding campaigns and direct communication with clients.

    Watch more reviews
  • dashboard aplicación online

    Maximum reliability at the best price

    At LabsMobile we only offer direct routes of maximum reliability and quality. Enjoy our platform and all our services for the price of an SMS.

    Pay ONLY for sent messages.

    Check our rates
  • dashboard aplicación online

    Need more info? Contact us!

    Our technical department has professionals with years of experience and we have made multiple integrations.

    We guide and help you through the process.

    Request technical support
  • Send messages from an Excel file

    This tutorial explains how to send bulk messages or other messages straight from an Excel file.

    Ir al tutorial
loader