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
- Host: GitHub
- URL: https://github.com/tolgee/php
- Owner: tolgee
- License: bsd-3-clause
- Created: 2021-02-06T07:21:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-31T16:25:11.000Z (about 3 years ago)
- Last Synced: 2025-07-07T01:07:12.475Z (11 months ago)
- Language: PHP
- Size: 241 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Tolgee PHP Integration
[
](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).