PHP Classes

File: Logaty/start.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Multilingual Support Library   Logaty/start.php   Download  
File: Logaty/start.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Multilingual Support Library
Translate texts for Web sites from JSON or DB
Author: By
Last change:
Date: 3 years ago
Size: 328 bytes
 

Contents

Class file image Download
<?php
require_once ('vendor/autoload.php');

use
PHPtricks\Logaty\App;

global
$logaty;

$logaty = new App();


if(!
function_exists('logaty'))
{
    function
logaty($string = '', $lang = '')
    {
        global
$logaty;

        if(
$string || $lang)
            return
$logaty($string, $lang);

        return
$logaty;
    }
}