No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


How To Use:

  1. Download "bablic.php" into your php index folder.

  2. Place this snippet at the top of your index.php file:

# init the Bablci SDK with your site ID (required)
require 'bablic.php';
$site_id = 'your site id';
$bablic = new BablicSDK(
        'site_id'=> $site_id,
        'subdir'=>true // optional, set your website with subdir languages (/fr/, /it/,...)

# run the SEO middlware
        'nourl' => false, // optional
        'debug' => false, //optional
        'nocache' => false, //optional
        'url' => '' //optional

# Example: how to paste the snippet in your HTML
       <title>A most unique website</title>
       <?php echo $bablic->bablic_top() ?>
       A most unique content
       <?php echo $bablic->bablic_bottom() ?>

And that's it!


site_id - required, your Bablic site id.

nourl - Bablic will not rewrite URL links and will leave them as they are in the original language. Only use this option if you have rewriting the HTML links in your server.

debug - optional, when true Bablic SDK will handle ALL web requests

nocache - optional, when true does not use cache

url - optional, if you ever need to query Bablic for a diffrent domain (testing, staging, etc)


handle_request() - request middleware, renders html optimized for crawling engines, only to crawling engines

bablic_top() - generates the snippet code to put in the page head tags

bablic_bottom() - generates the snippet code to put in the page bottom