{"id":18610577,"url":"https://github.com/ixnode/php-timezone","last_synced_at":"2026-02-01T02:32:26.647Z","repository":{"id":177704092,"uuid":"660797192","full_name":"ixnode/php-timezone","owner":"ixnode","description":"This library converts different timezone strings.","archived":false,"fork":false,"pushed_at":"2024-11-23T11:13:43.000Z","size":279,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-07T18:07:10.839Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ixnode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-30T21:53:21.000Z","updated_at":"2024-11-23T11:13:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"8eb22d3b-3375-4787-b54f-17bc6c9fb74d","html_url":"https://github.com/ixnode/php-timezone","commit_stats":null,"previous_names":["ixnode/php-timezone"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/ixnode/php-timezone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-timezone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-timezone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-timezone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-timezone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ixnode","download_url":"https://codeload.github.com/ixnode/php-timezone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-timezone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28965375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T02:14:24.993Z","status":"ssl_error","status_checked_at":"2026-02-01T02:13:55.706Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2024-11-07T03:11:07.035Z","updated_at":"2026-02-01T02:32:26.627Z","avatar_url":"https://github.com/ixnode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Timezone\n\nThis library converts different timezone strings.\n\n## Usage\n\n```php\nuse Ixnode\\PhpTimezone\\Timezone;\n```\n\n### Get country code from given timezone.\n\n```php\nprint (new Timezone('Europe/Berlin'))-\u003egetCountryCode();\n// (string) \"DE\"\n```\n\n### Get country name in english from given timezone.\n\n```php\nprint (new Timezone('Europe/Berlin'))-\u003egetCountryName();\n// (string) \"Germany\"\n```\n\n### Get country name in german from given timezone.\n\n```php\nuse Ixnode\\PhpTimezone\\Constants\\Locale\n\nprint (new Timezone('Europe/Berlin'))-\u003egetCountryName(Locale::DE_DE);\n// (string) \"Deutschland\"\n```\n\n### Get some locale language names in different languages\n\n```php\nuse Ixnode\\PhpTimezone\\Constants\\Locale\nuse Ixnode\\PhpTimezone\\Constants\\LocaleTranslation\n\nprint LocaleTranslation::DE_DE[Locale::DE_DE];\n// (string) \"Deutsch (Deutschland)\"\nprint LocaleTranslation::DE_DE[Locale::ES_ES];\n// (string) \"Alemán (Alemania)\"\nprint LocaleTranslation::NN_NO[Locale::IT_IT];\n// (string) \"Norvegese nynorsk (Norvegia)\"\n```\n\netc.\n\n### Get some language names in different languages\n\n```php\nuse Ixnode\\PhpTimezone\\Constants\\Language\n\nprint Language::DE['de'];\n// (string) \"Deutsch\"\nprint Language::DE['sv'];\n// (string) \"Tyska\"\nprint Language::SV['en'];\n// (string) \"Swedish\"\n```\n\netc.\n\n## Installation\n\n```bash\ncomposer require ixnode/php-timezone\n```\n\n```bash\nvendor/bin/php-timezone -V\n```\n\n```bash\nphp-timezone 0.1.0 (12-19-2022 01:17:26) - Björn Hempel \u003cbjoern@hempel.li\u003e\n```\n\n## Development\n\n```bash\ngit clone git@github.com:ixnode/php-timezone.git \u0026\u0026 cd php-timezone\n```\n\n```bash\ncomposer install\n```\n\n```bash\ncomposer test\n```\n\n## License\n\nThis tool is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixnode%2Fphp-timezone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fixnode%2Fphp-timezone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixnode%2Fphp-timezone/lists"}