PHPackages                             luoksstudios/translate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. luoksstudios/translate

ActiveLibrary[Localization &amp; i18n](/categories/localization)

luoksstudios/translate
======================

Fast PHP translation library for 25+ languages including all Indian languages. By LUOKS STUDIOS.

1.6.3(2mo ago)010MITPHPPHP &gt;=7.4

Since Feb 28Pushed 2mo agoCompare

[ Source](https://github.com/LUOKSSTUDIOS/translate)[ Packagist](https://packagist.org/packages/luoksstudios/translate)[ RSS](/packages/luoksstudios-translate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

🌐 LUOKS STUDIOS Translate
=========================

[](#-luoks-studios-translate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8caa2fe807cb727d632598393013c23b4978925aaedccda0f1558bb9735e7c48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756f6b7373747564696f732f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/luoksstudios/translate)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/ccfb3c4118503f83eb4a539f8c6b760cb6b57721570e0254e0907387894f8b54/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756f6b7373747564696f732f7472616e736c6174652f74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/luoksstudios/translate/actions)[![Total Downloads](https://camo.githubusercontent.com/55011fdca974a2e0f1f4759d3af15e5305c0c03ac4828caaa770cc466d1778c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c756f6b7373747564696f732f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/luoksstudios/translate)[![PHP Version](https://camo.githubusercontent.com/eb773fa94283cbea6c7b192d460983a781ae4a16409af56d109fe3e8e71ab6c9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e342d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net)

**Premium, high-performance PHP translation library for 25+ languages, including all major Indian regional languages. Completely free with multi-layer caching and parallel engine support.**

Developed with ❤️ by [Chokshi Raj](https://github.com/chokshiraj) &amp; [LUOKS STUDIOS](https://luoksstudios.com).
------------------------------------------------------------------------------------------------------------------

[](#developed-with-️-by-chokshi-raj--luoks-studios)

✨ Features
----------

[](#-features)

- 🚀 **Blazing Fast:** Under 500ms per call.
- 🇮🇳 **Indian First:** Full support for Hindi, Gujarati, Marathi, Bengali, Tamil, Telugu, and more.
- 💸 **100% Free:** Works without expensive API keys or subscriptions.
- 🧠 **Smart Caching:** Dual-layer system (In-Memory + File) for 0ms repeats.
- ⚡ **Parallel Batching:** Translate 10+ strings at once using multi-cURL.
- 🛡️ **Fallback Chain:** Automatically switches between Google, MyMemory, and LibreTranslate if one fails.
- 🎨 **Embeddable Widget:** One line of PHP to inject a fully protected, branded JS widget.
- 🔌 **Framework Ready:** PSR-4 compliant; works with Laravel, WordPress, Symfony, etc.

---

📦 Installation
--------------

[](#-installation)

```
composer require luoksstudios/translate
```

---

🚀 Quick Start
-------------

[](#-quick-start)

```
use LuoksStudios\Translate\Translate;

// Simple one-liner
echo Translate::hindi('Welcome to our store');
// नमस्ते हमारे स्टोर में आपका स्वागत है

// Specific languages
echo Translate::to('gu', 'How are you?');
// તમે કેમ છો?

```

---

🛠️ Usage Examples
-----------------

[](#️-usage-examples)

### 1. Basic Object Usage

[](#1-basic-object-usage)

```
use LuoksStudios\Translate\Translator;

$t = new Translator();
$result = $t->translate('Hello World', 'en', 'hi');
```

### 2. Magic Methods

[](#2-magic-methods)

```
echo $t->toGujarati('Good Morning');
echo $t->toMarathi('Thank you');
echo $t->toBengali('Welcome');
```

### 3. Parallel Batch Translation (Ultra Fast)

[](#3-parallel-batch-translation-ultra-fast)

```
$texts = ['Home', 'Products', 'About Us', 'Contact'];
$translations = $t->batch($texts, 'en', 'hi');
// Parallel cURL makes this almost as fast as a single request!
```

### 4. Injection Widget

[](#4-injection-widget)

```
use LuoksStudios\Translate\Widget;

// Add this in your footer or layout
Widget::inject(['defaultLang' => 'hi']);
```

---

🏎️ Performance
--------------

[](#️-performance)

Cache LevelSpeedPersistence**Memory (L1)**0-1msRequest Only**File (L2)**2-10msForever**API Call**200-500msN/AWe utilize `curl_multi_exec` for batch translations, allowing us to send multiple requests simultaneously, providing a 10x speed improvement over sequential calls.

---

🤝 Integrations
--------------

[](#-integrations)

### Laravel

[](#laravel)

```
// In AppServiceProvider or any controller
use LuoksStudios\Translate\Translate;

Translate::configure([
    'cache_dir' => storage_path('framework/cache/luoks'),
    'engines' => ['google', 'mymemory']
]);

// In Blade
{{ Translate::hindi('Hello') }}
```

### WordPress

[](#wordpress)

```
// In functions.php
require_once __DIR__ . '/vendor/autoload.php';
use LuoksStudios\Translate\Widget;

add_action('wp_footer', function() {
    Widget::inject(['defaultLang' => 'hi']);
});
```

---

📄 License
---------

[](#-license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

---

🏢 About LUOKS STUDIOS
---------------------

[](#-about-luoks-studios)

**LUOKS STUDIOS** is a professional technology agency specialized in high-performance digital products and open-source contributions.

- Lead Developer: **Chokshi Raj** ([@chokshiraj](https://github.com/chokshiraj))
- Website: [luoksstudios.com](https://luoksstudios.com)
- Email:
- GitHub: [@LUOKSSTUDIOS](https://github.com/LUOKSSTUDIOS)

---

*© 2026 Chokshi Raj &amp; LUOKS STUDIOS. All rights reserved.*

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance85

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

79d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2732f52959898398313649705b0563e0a510c12dc572ffdac03c6a14a9d37028?d=identicon)[LUOKSSTUDIOS](/maintainers/LUOKSSTUDIOS)

---

Top Contributors

[![LUOKSSTUDIOS](https://avatars.githubusercontent.com/u/264479557?v=4)](https://github.com/LUOKSSTUDIOS "LUOKSSTUDIOS (8 commits)")

---

Tags

phplocalizationi18ntranslationmultilingualtranslatorindian-languagesmarathihindigujaratiluoksluoksstudios

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/luoksstudios-translate/health.svg)

```
[![Health](https://phpackages.com/badges/luoksstudios-translate/health.svg)](https://phpackages.com/packages/luoksstudios-translate)
```

###  Alternatives

[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

92421.6k26](/packages/tractorcow-silverstripe-fluent)[jayesh/laravel-gemini-translator

An interactive command to extract and generate Laravel translations using Gemini AI.

691.7k1](/packages/jayesh-laravel-gemini-translator)[inpsyde/multilingual-press

Simply THE multisite-based free open source plugin for your multilingual websites.

2414.0k1](/packages/inpsyde-multilingual-press)[jrmajor/fluent

Fluent localization system for PHP

2716.9k5](/packages/jrmajor-fluent)[jrmajor/laravel-fluent

Fluent translations for Laravel

208.4k](/packages/jrmajor-laravel-fluent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
