{"id":22814453,"url":"https://github.com/68publishers/application","last_synced_at":"2025-04-22T18:40:07.760Z","repository":{"id":56938516,"uuid":"75735241","full_name":"68publishers/application","owner":"68publishers","description":"🌎 Easily setup different languages, currencies and countries","archived":false,"fork":false,"pushed_at":"2019-08-31T09:37:57.000Z","size":68,"stargazers_count":3,"open_issues_count":13,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-13T14:26:49.830Z","etag":null,"topics":["countries","currencies","environment","languages","nette"],"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/68publishers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-06T13:44:54.000Z","updated_at":"2019-08-31T09:37:59.000Z","dependencies_parsed_at":"2022-08-21T01:10:16.558Z","dependency_job_id":null,"html_url":"https://github.com/68publishers/application","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fapplication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fapplication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fapplication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fapplication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/68publishers","download_url":"https://codeload.github.com/68publishers/application/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229388360,"owners_count":18065252,"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":["countries","currencies","environment","languages","nette"],"created_at":"2024-12-12T13:08:59.749Z","updated_at":"2024-12-12T13:09:00.395Z","avatar_url":"https://github.com/68publishers.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Application\n\n[![Build Status][ico-travis]][link-travis]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Total Downloads][ico-downloads]][link-downloads]\n[![Latest Version on Packagist][ico-version]][link-packagist]\n\nThis package helps you to deal with regions with different languages, currencies and countries. It could be helpful even if you have single region project.\n\n## Installation\n\nThe best way to install 68publishers/application is using Composer:\n\n```bash\ncomposer require 68publishers/application\n```\n\nand now you can enable the Environment extension using your neon config\n\n```yml\nextensions:\n    environment: SixtyEightPublishers\\Application\\DI\\EnvironmentExtension\n```\n\n## Usage\n\n```php\nenvironment:\n    profile:\n        europe:\n            language: [sk_SK, en_GB, de_DE, pl_PL]\n            currency: [EUR, PLZ, GBP]\n            country: [SK, GB, DE, PL]\n        north_america:\n            language: en_US\n            currency: USD\n            country: US\n            domain: [www.example.com, example.com]\n            # disable: yes\n        default: # If the default profile doesn't exists, the first profile is taken as default\n            language: cs_CZ\n            currency: CZK\n            country: CZ\n```\n\n### Bar panel\n\nEnables and disables Tracy debugger bar panel for better debugging\n\n```yml\nenvironment:\n    debugger: yes\n```\n\n![](https://68publishers.github.io/repo/environment/tracy-panel.png)\n\n### Integration with Kdyby\\Translation\n\nThis feature provides automatic evaluation of the locale parameter for `Kdyby\\Translation` based on profile settings in the extension. \nDefault profile's language can be used if setting `translations.useDefault` is set to `TRUE`.\nIf is this setting set to `FALSE` default language will not be used and other resolvers will be invoked.\nAlso if you change language via method `\\SixtyEightPublishers\\Application\\Environment\\ActiveProfile::changeLanguage()`, locale in Translator is changed too.\n\n```yml\nenvironment:\n    translations:\n        enable: yes\n        useDefault: no\n```\n\n## Rules for contributing\n\n- **1 PR per feature**\n- PR with tests are more likely to be merged\n- **tests and coding standard must pass**\n\n```bash\nvendor/bin/tester ./tests -s\nvendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run\n```\n\n[ico-version]: https://img.shields.io/packagist/v/68publishers/application.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/68publishers/application/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/68publishers/application.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/68publishers/application.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/68publishers/application.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/68publishers/application\n[link-travis]: https://travis-ci.org/68publishers/application\n[link-scrutinizer]: https://scrutinizer-ci.com/g/68publishers/application/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/68publishers/application\n[link-downloads]: https://packagist.org/packages/68publishers/application\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F68publishers%2Fapplication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F68publishers%2Fapplication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F68publishers%2Fapplication/lists"}