PHP Library

For PHP version 5.3 or later

Step-by-step to installation

  1. Download PHP Library from
  2. Unzip ‘’, and place the folder called ‘WOVN.php’ into the root directory.
  3. Copy ‘wovn.ini.sample’ from the WOVN.php folder into the root directory.
  4. Change the file name ‘wovn.ini.sample’ to ‘wovn.ini’.

Enter the required information in ‘wovn.ini’.
・project_token : enter your Code Snippet (check ↓ where to find it)
・url_pattern_name : enter a query (default), path, or subdomain.
・default_lang : enter ‘en’ (or your website’s source language if it is not English.)
・supported_langs[] : This is the implementation of the hreflang attribute.
You need to implement it for your website to be indexed by search engines.
Do not do any settings for languages that are not translated.
Example:supported_langs[] = en
supported_langs[] = ja

Language code
For more details on language code, please click here.

  1. Enter the following into ‘index.php’
    The path above is where WOVN.php is placed.
    We recommend you place it at the top.

Example(Lalavel(PHP Framework))

File Structure

├── WOVN.php
│ └── wovn.ini.sample
├── index.php # You have to add `require_once` and load `WOVN.php/src/wovn_interceptor.php`.
└── wovn.ini # `WOVN.php/wovn.ini.sample` copy to `wovn.ini` and set your project token.

Coding Example of index.php

1 <?php
2 require_once(__DIR__.'/WOVN.php/src/wovn_interceptor.php'); # The top is recommended.
4 /**
5 * Laravel - A PHP Framework For Web Artisans
6 *
7 * @package Laravel
8 * @author Taylor Otwell <>
9 */
11 /*
12 |--------------------------------------------------------------------------
13 | Register The Auto Loader
14 |--------------------------------------------------------------------------
15 |
16 | Composer provides a convenient, automatically generated class loader
17 | for our application. We just need to utilize it! We'll require it
18 | into the script here so that we do not have to worry about the
19 | loading of any our classes "manually". Feels great to relax.
20 |
21 */
23 require __DIR__.'/../bootstrap/autoload.php';

Where to find your Code Snippet

Get your Code Snippet on your Project Page: click on the ellipsis icon of the project you want to work on and select ‘Code Snippet’ from the drop-down menu.

Select “PHP Library” from the drop-down menu, click on the icon next to the Code Snippet to copy the Code Snippet. 

More details 
More information on our Development pages and on our Github repository.