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
  • IT consultant, Computer security and processes recommends LabsMobile

    Sending access codes, authentication, user identification and validation processes with SMS messages.

    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
  • Create a custom landing

    This tutorial explains how to create a web landing with the WebSMS application. You can send an SMS campaign with a link to this landing and track the clicks of the users.

    Ir al tutorial