PHPackages                             bertprod/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. bertprod/translate

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

bertprod/translate
==================

Small project to manage and display translations

0.1.0(4y ago)07MITPHPPHP &gt;=7.3

Since Sep 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/BertProd/translate)[ Packagist](https://packagist.org/packages/bertprod/translate)[ Docs](https://github.com/BertProd/translate)[ RSS](/packages/bertprod-translate/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

translate
=========

[](#translate)

Small project to manage and display translations

Motivation
----------

[](#motivation)

I was looking for a very simple library to manage and display translations from a json file. Here is mine.

Installation
------------

[](#installation)

You can install it through composer:

> composer require bertprod/translate

You'll need to set an ini configuration file. You'll find an example file in the `config` directory.

System requirements
-------------------

[](#system-requirements)

PHP &gt;= 7.3 but latest stable version is highly recommanded

Usage
-----

[](#usage)

Don't instantiate Sentence class, use factory.

```

```

Currently, only ini files are supported for configuration. Sentences must be stored in json file. You can use the file `file/sentence-example.json` as a base.

```

```

You can get a sentence stored in the json file by using

```
