PHPackages                             daycry/codeigniter-language - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. daycry/codeigniter-language

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

daycry/codeigniter-language
===========================

Load language files as array in Codeigniter 4

v1.0.3(11mo ago)31.4kMITPHPPHP &gt;=8.1CI passing

Since Jun 10Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/daycry/codeigniter-language)[ Packagist](https://packagist.org/packages/daycry/codeigniter-language)[ Docs](https://github.com/daycry/codeigniter-language)[ RSS](/packages/daycry-codeigniter-language/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (5)Used By (0)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/donate?business=SYC5XDT23UZ5G&no_recurring=0&item_name=Thank+you%21&currency_code=EUR)

Codeigniter Language
====================

[](#codeigniter-language)

[![Build status](https://github.com/daycry/codeigniter-language/actions/workflows/phpunit.yml/badge.svg?branch=main)](https://github.com/daycry/codeigniter-language/actions/workflows/phpunit.yml)[![Coverage Status](https://camo.githubusercontent.com/630b9252b1b8f0ec4667d020d4b060a3f6c4e4cc39491aae296852dbbb000952/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6461796372792f636f646569676e697465722d6c616e67756167652f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/daycry/codeigniter-language?branch=main)[![Downloads](https://camo.githubusercontent.com/00c21b7964d066ebeed5e71d20a4023b2dcc78c1f46a1fb79288d628c220ca23/68747470733a2f2f706f7365722e707567782e6f72672f6461796372792f636f646569676e697465722d6c616e67756167652f646f776e6c6f616473)](https://packagist.org/packages/daycry/codeigniter-language)[![GitHub release (latest by date)](https://camo.githubusercontent.com/9adca39d3bf565c9cc6bf587b75b259a8b842a3887cb05c6eb8e779b9837fd4f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6461796372792f636f646569676e697465722d6c616e6775616765)](https://packagist.org/packages/daycry/codeigniter-language)[![GitHub stars](https://camo.githubusercontent.com/218a177304f6bf9fd72e10b720d5c65e211025945d1378d926fd2e57815f7990/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6461796372792f636f646569676e697465722d6c616e6775616765)](https://packagist.org/packages/daycry/codeigniter-language)[![GitHub license](https://camo.githubusercontent.com/f90558d7b84ad8a9e53da7dff0230ed5a0a74c68bba62e9968bbc51a6e0870e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6461796372792f636f646569676e697465722d6c616e6775616765)](https://github.com/daycry/codeigniter-language/blob/main/LICENSE)

Language for Codeigniter 4

Send translation files to Javascript

Installation via composer
-------------------------

[](#installation-via-composer)

Use the package with composer install

```
> composer require daycry/codeigniter-language

```

Manual installation
-------------------

[](#manual-installation)

Download this repo and then enable it by editing **app/Config/Autoload.php** and adding the **Daycry\\Language**namespace to the **$psr4** array. For example, if you copied it into **app/ThirdParty**:

```
$psr4 = [
    'Config'      => APPPATH . 'Config',
    APP_NAMESPACE => APPPATH,
    'App'         => APPPATH,
    'Daycry\Language' => APPPATH .'ThirdParty/codeigniter-language/src',
];
```

Usage Loading Library
---------------------

[](#usage-loading-library)

```
$language = new \Daycry\Language\Language( \Config\Services::request()->getLocale() );
$language->loadFile( 'Validation' );

var_dump( $language->getTraductions() );
```

Usage as a Service
------------------

[](#usage-as-a-service)

```
$language = \Config\Services::language();
$language->loadFile( 'Validation' );

var_dump( $language->getTraductions() );
```

Usage In Views
==============

[](#usage-in-views)

Twig
----

[](#twig)

Use the package with composer install

```
> composer require daycry/twig

```

```
$this->twig->addGlobal( 'traductions', $this->language->getTraductions() );
```

```

    var traductions = {{ traductions|json_encode|raw }};

    console.log( traductions['File']['string'] );

```

Codeigniter Views
-----------------

[](#codeigniter-views)

```
echo view( 'some_view' );
```

```

    var traductions = ;

    console.log( traductions['File']['string'] );

```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance52

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~489 days

Total

4

Last Release

335d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.2

v1.0.3PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b0f66565d5c9ca3c84fb294e04f8d5e0b9a867d9c06f83b95bf168bd6fcf9bc?d=identicon)[daycry](/maintainers/daycry)

---

Top Contributors

[![daycry](https://avatars.githubusercontent.com/u/7590335?v=4)](https://github.com/daycry "daycry (11 commits)")

---

Tags

arraylanguagejavascriptcodeignitercodeigniter4

###  Code Quality

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/daycry-codeigniter-language/health.svg)

```
[![Health](https://phpackages.com/badges/daycry-codeigniter-language/health.svg)](https://phpackages.com/packages/daycry-codeigniter-language)
```

###  Alternatives

[codeigniter4/settings

Settings library for CodeIgniter 4

93499.3k24](/packages/codeigniter4-settings)[zakirullin/mess

Convenient array-related routine &amp; better type casting

21228.9k2](/packages/zakirullin-mess)[codeigniter4/devkit

Development toolkit for CodeIgniter libraries and projects

68187.1k82](/packages/codeigniter4-devkit)[tatter/alerts

Lightweight user alerts for CodeIgniter 4

4072.4k6](/packages/tatter-alerts)[tatter/patches

Automated project updates for CodeIgniter 4

3588.4k3](/packages/tatter-patches)[michalsn/codeigniter4-uuid

UUID and ULID package for CodeIgniter 4 with support for Model.

4728.7k4](/packages/michalsn-codeigniter4-uuid)

PHPackages © 2026

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