{"id":28367193,"url":"https://github.com/tolgee/php","last_synced_at":"2025-07-12T01:33:08.471Z","repository":{"id":48314589,"uuid":"336479985","full_name":"tolgee/php","owner":"tolgee","description":"PHP integration for Tolgee localization framework","archived":false,"fork":false,"pushed_at":"2023-05-31T16:25:11.000Z","size":247,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-07T01:07:12.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tolgee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-06T07:21:00.000Z","updated_at":"2023-11-03T19:35:33.000Z","dependencies_parsed_at":"2022-08-24T14:38:33.233Z","dependency_job_id":null,"html_url":"https://github.com/tolgee/php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tolgee/php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolgee%2Fphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolgee%2Fphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolgee%2Fphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolgee%2Fphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tolgee","download_url":"https://codeload.github.com/tolgee/php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolgee%2Fphp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264923075,"owners_count":23683716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-29T01:08:42.531Z","updated_at":"2025-07-12T01:33:08.449Z","avatar_url":"https://github.com/tolgee.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Tolgee PHP Integration\n\n[\u003cimg src=\"https://raw.githubusercontent.com/tolgee/documentation/cca5778bcb8f57d28a03065d1927fcea31d0b089/tolgee_logo_text.svg\" alt=\"Tolgee Toolkit\" /\u003e](https://toolkit.tolgee.io)\n\nPHP integration library for Tolgee localization toolkit. For more information about Tolgee Toolkit, visit our documentation website\n[toolkit.tolgee.io](https://toolkit.tolgee.io).\n\n## Installation\n\n    composer require tolgee\n\n## Usage\n\nTo use Tolgee with PHP, start with creating TolgeeConfig class instance and Tolgee class instance.\n\n    \u003c?php\n\n    use Tolgee\\Core\\Enums\\Modes;\n    use Tolgee\\Core\\Tolgee;\n    use Tolgee\\Core\\TolgeeConfig;\n    \n    $config = new TolgeeConfig();\n    $config-\u003eapiKey = \"your api key\"\n    $config-\u003eapiUrl = \"your api url\"\n    $config-\u003emode = Modes::DEVELOPMENT;\n    \n    $tolgee = new Tolgee($config);\n\nThen you can simply use Tolgee to translate strings:\n\n    $tolgee-\u003etranslate(\"hello_world\");\n\nTo learn more, check [our docs](https://toolkit.tolgee.io/docs/web/using_with_php).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolgee%2Fphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftolgee%2Fphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolgee%2Fphp/lists"}