PHP code example of exs / lander-tracking-chaturbate-bundle

1. Go to this page and download the library: Download exs/lander-tracking-chaturbate-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/ */

    

exs / lander-tracking-chaturbate-bundle example snippets



// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new EXS\LanderTrackingHouseBundle\EXSLanderTrackingHouseBundle(),
        new EXS\LanderTrackingChaturbateBundle\EXSLanderTrackingChaturbateBundle(),
        // ...
    );
}
twig
    <a href="{{ 'http://www.test.tld/' | appendTracking('chaturbate') }}">Some link</a>
    <!-- Will generate : "http://www.test.tld/?track=123~987654321~5" -->
    
    <a href="{{ 'http://www.test.tld/?foo=bar' | appendTracking('chaturbate') }}">Some link</a>
    <!-- Will generate : "http://www.test.tld?foo=bar&track=123~987654321~5" -->