An open API service indexing awesome lists of open source software.

https://github.com/tolgee/php

PHP integration for Tolgee localization framework
https://github.com/tolgee/php

Last synced: 11 months ago
JSON representation

PHP integration for Tolgee localization framework

Awesome Lists containing this project

README

          

## Tolgee PHP Integration

[Tolgee Toolkit](https://toolkit.tolgee.io)

PHP integration library for Tolgee localization toolkit. For more information about Tolgee Toolkit, visit our documentation website
[toolkit.tolgee.io](https://toolkit.tolgee.io).

## Installation

composer require tolgee

## Usage

To use Tolgee with PHP, start with creating TolgeeConfig class instance and Tolgee class instance.

apiKey = "your api key"
$config->apiUrl = "your api url"
$config->mode = Modes::DEVELOPMENT;

$tolgee = new Tolgee($config);

Then you can simply use Tolgee to translate strings:

$tolgee->translate("hello_world");

To learn more, check [our docs](https://toolkit.tolgee.io/docs/web/using_with_php).