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.


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


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 ...

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
  • Qids, The communication app for parents recommends LabsMobile

    App user authentication and sending invitations to download the app to user contacts.

    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
  • Sendings and campaigns with unsubscribe method

    This tutorial explains how to include a download method in SMS messages sent from the WebSMS application and how user data is updated.

    Ir al tutorial