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,080 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  
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

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,080
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:418
 
very good
8 years ago (muabshir)
70%StarStarStarStar