{"id":18955019,"url":"https://github.com/alaca/php-localization","last_synced_at":"2025-04-17T05:30:08.378Z","repository":{"id":101128261,"uuid":"59139503","full_name":"alaca/PHP-Localization","owner":"alaca","description":"PHP Localization Library","archived":false,"fork":false,"pushed_at":"2019-01-10T22:44:09.000Z","size":16,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T22:31:18.690Z","etag":null,"topics":["i18n","internationalization","localization","multilanguage","php","php-localization","translation"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alaca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-18T18:02:43.000Z","updated_at":"2023-03-07T05:17:27.000Z","dependencies_parsed_at":"2023-05-24T16:30:34.310Z","dependency_job_id":null,"html_url":"https://github.com/alaca/PHP-Localization","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaca%2FPHP-Localization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaca%2FPHP-Localization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaca%2FPHP-Localization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alaca%2FPHP-Localization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alaca","download_url":"https://codeload.github.com/alaca/PHP-Localization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249184610,"owners_count":21226419,"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":["i18n","internationalization","localization","multilanguage","php","php-localization","translation"],"created_at":"2024-11-08T13:46:57.610Z","updated_at":"2025-04-16T02:33:04.657Z","avatar_url":"https://github.com/alaca.png","language":"PHP","readme":"# PHP Localization Library\n\n### Setting it up config.php\n```php\n\nreturn [\n   'path'  =\u003e 'translations', // translation files directory path | translations is default\n   'input' =\u003e 'language',     // url parameter | language is default\n   'languages' =\u003e [           // languages, first language is default\n      'en' =\u003e 'English',\n      'de' =\u003e 'Deutsch',\n      'it' =\u003e 'Italiano'\n   ]   \n];\n\n```\n\n### Translating strings\n```php\n echo __('Site title'); \n\n echo __('Site %s', ['title']); \n\n echo Localization::instance()-\u003etranslate('Site %s', ['title']); \n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falaca%2Fphp-localization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falaca%2Fphp-localization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falaca%2Fphp-localization/lists"}