PHP code example of feicanfly / alisms-for-laravel

1. Go to this page and download the library: Download feicanfly/alisms-for-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

feicanfly / alisms-for-laravel example snippets



    return [
        'KEY' =>env('ALISMS_KEY',null),
        'SECRETKEY'=>env('ALISMS_SECRETKEY',null),
    ];


    public function __construct(Sms $sms)
    {
       $this->sms=$sms;
    }

    public function index()
    {
       $result=$this->sms->send("$phone","$name","$content",'$code');
    }

    {
      code:"生成的验证码",
      product:"示例项目"
    }

php artisan vendor:publish