{"id":15277467,"url":"https://github.com/michalsn/codeigniter-gettext","last_synced_at":"2025-04-12T15:10:27.805Z","repository":{"id":183203190,"uuid":"659586155","full_name":"michalsn/codeigniter-gettext","owner":"michalsn","description":"Use gettext with CodeIgniter 4 more easily","archived":false,"fork":false,"pushed_at":"2024-02-06T08:58:49.000Z","size":48,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-10T02:16:03.408Z","etag":null,"topics":["codeigniter","codeigniter4","gettext","php","php8"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michalsn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-28T06:37:09.000Z","updated_at":"2023-10-28T04:40:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5ec5fde-74dc-4c9c-82bd-9c3a24058270","html_url":"https://github.com/michalsn/codeigniter-gettext","commit_stats":null,"previous_names":["michalsn/codeigniter-gettext"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-gettext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-gettext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-gettext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalsn%2Fcodeigniter-gettext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalsn","download_url":"https://codeload.github.com/michalsn/codeigniter-gettext/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586232,"owners_count":21128997,"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":["codeigniter","codeigniter4","gettext","php","php8"],"created_at":"2024-09-30T11:06:40.399Z","updated_at":"2025-04-12T15:10:27.780Z","avatar_url":"https://github.com/michalsn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeIgniter Gettext\n\nThis library gives users the ability to use [gettext](https://www.php.net/manual/en/book.gettext.php) more friendly way.\n\n[![PHPUnit](https://github.com/michalsn/codeigniter-gettext/actions/workflows/phpunit.yml/badge.svg)](https://github.com/michalsn/codeigniter-gettext/actions/workflows/phpunit.yml)\n[![PHPStan](https://github.com/michalsn/codeigniter-gettext/actions/workflows/phpstan.yml/badge.svg)](https://github.com/michalsn/codeigniter-gettext/actions/workflows/phpstan.yml)\n[![Deptrac](https://github.com/michalsn/codeigniter-gettext/actions/workflows/deptrac.yml/badge.svg)](https://github.com/michalsn/codeigniter-gettext/actions/workflows/deptrac.yml)\n\n![PHP](https://img.shields.io/badge/PHP-%5E8.0-blue)\n![CodeIgniter](https://img.shields.io/badge/CodeIgniter-%5E4.3-blue)\n\n### Installation\n\n#### Composer\n\n    composer require michalsn/codeigniter-gettext\n\n#### Manually\n\nIn the example below we will assume, that files from this project will be located in `app/ThirdParty/gettext` directory.\n\nDownload this project and then enable it by editing the `app/Config/Autoload.php` file and adding the `Michalsn\\CodeIgniterGettext` namespace to the `$psr4` array, like in the below example:\n\n```php\n\u003c?php\n\nnamespace Config;\n\nuse CodeIgniter\\Config\\AutoloadConfig;\n\nclass Autoload extends AutoloadConfig\n{\n    // ...\n    public $psr4 = [\n        APP_NAMESPACE =\u003e APPPATH, // For custom app namespace\n        'Config'      =\u003e APPPATH . 'Config',\n        'Michalsn\\CodeIgniterGettext' =\u003e APPPATH . 'ThirdParty/gettext/src',\n    ];\n\n    // ...\n```\n\n### Example\n\n```php\n\nservice('gettext')-\u003esetLocale('pl');\n\necho _('Hello');\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalsn%2Fcodeigniter-gettext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalsn%2Fcodeigniter-gettext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalsn%2Fcodeigniter-gettext/lists"}