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: 8 days 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;
    }
}


For more information send a message to info at phpclasses dot org.