PHP code example of idmarinas / advertising-bundle

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

    

idmarinas / advertising-bundle example snippets

twig
<!-- Code of your template -->
<!-- .... -->

{{ advertising_banner('adsense', 'banner_header') }}

{{ advertising_banner('generic', 'custom_zone') }}

<!-- .... -->
<!-- Code of your template -->