PHP code example of multitoys / laravel-letsads
1. Go to this page and download the library: Download multitoys/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/ */
multitoys / laravel-letsads example snippets
// config/app.php
'providers' => [
...
Multitoys\LetsAds\LetsAdsServiceProvider::class,
];
'aliases' => [
'LetsAds' => Multitoys\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="Multitoys\LetsAds\LetsAdsServiceProvider"