PHPackages                             tectonic/localisation - 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. tectonic/localisation

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

tectonic/localisation
=====================

A localisation/translation package for models, entities and collections in your chosen framework.

3.0.3(2y ago)3137.4k↓41%11PHPPHP ^7.4|^8.0|^8.2

Since Jun 17Pushed 2y ago8 watchersCompare

[ Source](https://github.com/tectonic/localisation)[ Packagist](https://packagist.org/packages/tectonic/localisation)[ RSS](/packages/tectonic-localisation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (10)Used By (1)

Localisation
============

[](#localisation)

[![Circle CI](https://camo.githubusercontent.com/0bf1cbac3248109e45a433c16ed36d8d72a4fbacad02e40ce6646cd9fbf4d799/68747470733a2f2f636972636c6563692e636f6d2f67682f746563746f6e69632f6c6f63616c69736174696f6e2e706e673f7374796c653d6261646765)](https://circleci.com/gh/tectonic/localisation)

This package helps to setup translations and implementations for given models, entities, collections or anything else. If you know how to write a class to extend libraries, you can translate practically anything. Localisation is intended to be used as a contract and common api for all translation requests. Bridge packages are setup that support particular patterns or frameworks' way of doing things. Eg. ()

Localisation in reality is a very basic package, simply defining the APIs and interfaces necessary for implementing translation components.

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

[](#installation)

Installation of Localisation is done in the usual manner, using composer:

```
composer require tectonic/localisation

```

Translating an object
---------------------

[](#translating-an-object)

Translation of any object is done simply by passing the object to the translation engine:

```
