PHP Classes

PHP Multilingual Support Library: Translate texts for Web sites from JSON or DB

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 461 All time: 6,079 This week: 79Up
Version License PHP version Categories
multilingual-library 1.0.18GNU Lesser Genera...5.3.0Localization, PHP 5, Databases
Description 

Author

This package can translate texts for Web sites from JSON files or a database using PDO, MySQL or MySQLi extensions.

There is a class that can detect the user language by either checking the HTTP Accept request header or looking up the country of the user based on the IP address and then looking up the official language of that country.

The user language can also be retrieved from a request parameter named lang.

Another class can read the application texts for the user language from JSON files.

An alternative version can retrieve the application texts from a MySQL database accessed using PDO.

Picture of mohammad anzawi
  Performance   Level  
Name: mohammad anzawi <contact>
Classes: 8 packages by
Country: Jordan Jordan
Age: 9
All time rank: 14322 in Jordan Jordan
Week rank: 178 Up2 in Jordan Jordan Equal
Innovation award
Innovation award
Nominee: 2x

Example

<?php

require_once("Logaty/start.php");

echo
logaty()->switcher->select();
echo
logaty()->switcher->ul();
echo
logaty()->switcher->select();
echo
logaty()->switcher->ul();
echo
logaty()->switcher->select();
echo
logaty()->switcher->ul();
echo
logaty()->switcher->select();
echo
logaty()->switcher->ul();
echo
logaty()->switcher->select();
echo
logaty()->switcher->ul();
echo
logaty()->switcher->select();
echo
logaty()->switcher->ul();


Details

logaty

Multi Language Library which can help you rapidly develop your next Multilingual Website It has a lot of useful components to reduce the burden of create a Multilingual website for your next website.

full documentation https://anzawi.github.io/logaty-docs/


  Files folder image Files (57)  
File Role Description
Files folder image.idea (4 files, 1 directory)
Files folder imageassets (1 directory)
Files folder imageConfig (7 files)
Files folder imagecore (2 files)
Files folder imageinc (1 directory)
Files folder imagelanguages (5 files)
Files folder imagelocal (1 directory)
Files folder imageLogaty (2 files, 2 directories)
Files folder imagetests (3 files, 1 directory)
Files folder imagevendor (1 file, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Data Auxiliary data

  Files folder image Files (57)  /  .idea  
File Role Description
Files folder imagecopyright (1 file)
  Accessible without login Plain text file deployment.xml Data Auxiliary data
  Accessible without login Plain text file logaty.iml Data Auxiliary data
  Accessible without login Plain text file modules.xml Data Auxiliary data
  Accessible without login Plain text file workspace.xml Data Auxiliary data

  Files folder image Files (57)  /  .idea  /  copyright  
File Role Description
  Accessible without login Plain text file profiles_settings.xml Data Auxiliary data

  Files folder image Files (57)  /  assets  
File Role Description
Files folder imageswitch-templates (2 files)

  Files folder image Files (57)  /  assets  /  switch-templates  
File Role Description
  Accessible without login Plain text file select.php Example Example script
  Accessible without login Plain text file ul.php Example Example script

  Files folder image Files (57)  /  Config  
File Role Description
  Accessible without login Plain text file code.php Aux. Auxiliary script
  Accessible without login Plain text file direction.php Aux. Auxiliary script
  Accessible without login Plain text file enabled.php Aux. Auxiliary script
  Accessible without login Plain text file flag.php Aux. Auxiliary script
  Accessible without login Plain text file name.php Aux. Auxiliary script
  Accessible without login Plain text file options.php Aux. Auxiliary script
  Accessible without login Plain text file paths.php Aux. Auxiliary script

  Files folder image Files (57)  /  core  
File Role Description
  Accessible without login Plain text file detect_visitor_language.php Example Example script
  Accessible without login Plain text file init.php Conf. Configuration script

  Files folder image Files (57)  /  inc  
File Role Description
Files folder imageclasses (1 directory)

  Files folder image Files (57)  /  inc  /  classes  
File Role Description
Files folder imageLibs (1 directory)

  Files folder image Files (57)  /  inc  /  classes  /  Libs  
File Role Description
Files folder imagePhptricks_Database (5 files)

  Files folder image Files (57)  /  inc  /  classes  /  Libs  /  Phptricks_Database  
File Role Description
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file config_function.php Aux. Auxiliary script
  Accessible without login Plain text file Database.php Class Class source
  Accessible without login Plain text file database_config.php Aux. Auxiliary script
  Accessible without login Plain text file README.md Example Example script

  Files folder image Files (57)  /  languages  
File Role Description
  Accessible without login Plain text file ar.json Data Auxiliary data
  Accessible without login Plain text file default.json Data Auxiliary data
  Accessible without login Plain text file de_DE.json Data Auxiliary data
  Accessible without login Plain text file en-US.json Data Auxiliary data
  Accessible without login Plain text file te-TE.json Data Auxiliary data

  Files folder image Files (57)  /  local  
File Role Description
Files folder imagelanguages (2 directories)

  Files folder image Files (57)  /  local  /  languages  
File Role Description
Files folder imagear (1 file)
Files folder imageen (1 file)

  Files folder image Files (57)  /  local  /  languages  /  ar  
File Role Description
  Accessible without login Plain text file home.php Aux. Auxiliary script

  Files folder image Files (57)  /  local  /  languages  /  en  
File Role Description
  Accessible without login Plain text file home.php Aux. Auxiliary script

  Files folder image Files (57)  /  Logaty  
File Role Description
Files folder imageHelpers (4 files, 2 directories)
Files folder imageTranslate (1 file)
  Accessible without login Plain text file App.php Class Class source
  Accessible without login Plain text file start.php Example Example script

  Files folder image Files (57)  /  Logaty  /  Helpers  
File Role Description
Files folder imageDetect (2 files)
Files folder imageSwitcher (3 files)
  Accessible without login Plain text file Config.php Class Class source
  Accessible without login Plain text file Detect.php Class Class source
  Accessible without login Plain text file Link.php Class Class source
  Accessible without login Plain text file Switcher.php Class Class source

  Files folder image Files (57)  /  Logaty  /  Helpers  /  Detect  
File Role Description
  Accessible without login Plain text file Browser.php Class Class source
  Accessible without login Plain text file Country.php Class Class source

  Files folder image Files (57)  /  Logaty  /  Helpers  /  Switcher  
File Role Description
  Accessible without login Plain text file ImportTemplate.php Class Class source
  Accessible without login Plain text file Select.php Class Class source
  Accessible without login Plain text file Ul.php Class Class source

  Files folder image Files (57)  /  Logaty  /  Translate  
File Role Description
  Accessible without login Plain text file Translator.php Class Class source

  Files folder image Files (57)  /  tests  
File Role Description
Files folder imagehelpers (1 file)
  Accessible without login Plain text file DetectLanguageTest.php Class Class source
  Accessible without login Plain text file LinkTest.php Class Class source
  Accessible without login Plain text file TranslatorTest.php Class Class source

  Files folder image Files (57)  /  tests  /  helpers  
File Role Description
  Accessible without login Plain text file MainHelpersTest.php Class Class source

  Files folder image Files (57)  /  vendor  
File Role Description
Files folder imagecomposer (8 files)
  Accessible without login Plain text file autoload.php Aux. Auxiliary script

  Files folder image Files (57)  /  vendor  /  composer  
File Role Description
  Accessible without login Plain text file autoload_classmap.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_files.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_namespaces.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_psr4.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_real.php Class Class source
  Accessible without login Plain text file autoload_static.php Class Class source
  Accessible without login Plain text file ClassLoader.php Class Class source
  Accessible without login Plain text file LICENSE Lic. License text

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 70%
Total:461
This week:0
All time:6,079
This week:79Up
User Ratings User Comments (1)
 All time
Utility:100%StarStarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:409
 
very good
7 years ago (muabshir)
70%StarStarStarStar