PHP code example of usamamuneerchaudhary / billboard

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

    

usamamuneerchaudhary / billboard example snippets


'widgets' => [
    ['type' => 'billboard_performance', 'width' => 50, 'days' => 30, 'limit' => 5],
],
bash
composer vendor:publish --tag=billboard --force
php artisan migrate
antlers
{{ content }}
    {{ if type == "text" }}
        {{ text }}
    {{ elseif type == "advertisement" }}
        {{ placement }}
    {{ /if }}
{{ /content }}
bash
php artisan vendor:publish --tag=billboard-views
bash
php artisan vendor:publish --tag=billboard-config