PHP code example of rhincodon / laravel-letsads

1. Go to this page and download the library: Download rhincodon/laravel-letsads 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/ */

    

rhincodon / laravel-letsads example snippets


// config/app.php
'providers' => [
    ...
    Rhinodontypicus\LetsAds\LetsAdsServiceProvider::class,
];
'aliases' => [
    'LetsAds' => Rhinodontypicus\LetsAds\LetsAdsFacade::class,
];

use LetsAds;

// Get balance
LetsAds::balance();

// Send messages
// $phones may be string or array
LetsAds::send($message, $from, $phones);

// Get messages statuses
LetsAds::status($messageId);
bash
php artisan vendor:publish --provider="Rhinodontypicus\LetsAds\LetsAdsServiceProvider"