{"id":37262035,"url":"https://github.com/yutaki323/wareki","last_synced_at":"2026-01-15T23:14:09.404Z","repository":{"id":57088727,"uuid":"181852928","full_name":"yutaki323/wareki","owner":"yutaki323","description":"西暦を和暦に変換出力するツール。php5 以上なら動きます","archived":false,"fork":false,"pushed_at":"2019-04-23T15:26:02.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-02T14:46:40.908Z","etag":null,"topics":["date","php","tool","wareki"],"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/yutaki323.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":"2019-04-17T08:49:38.000Z","updated_at":"2024-05-14T00:17:38.000Z","dependencies_parsed_at":"2022-08-20T16:00:34.584Z","dependency_job_id":null,"html_url":"https://github.com/yutaki323/wareki","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/yutaki323/wareki","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutaki323%2Fwareki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutaki323%2Fwareki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutaki323%2Fwareki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutaki323%2Fwareki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yutaki323","download_url":"https://codeload.github.com/yutaki323/wareki/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutaki323%2Fwareki/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["date","php","tool","wareki"],"created_at":"2026-01-15T23:14:08.819Z","updated_at":"2026-01-15T23:14:09.398Z","avatar_url":"https://github.com/yutaki323.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wareki\n\n日付文字列を元号＋和暦数字の表記に変換するPHPのクラスです。\n令和反映済み。\n\n旧システムでも使えるようPHP5でも動作するように書きました。\n\nアルファベット表記、漢数字にも対応しています。\n(年度は9999年が上限です)\n\n## install\n\n```\ncomposer require yutaki323/wareki\n```\n\n## usage\n\n### 基本\n\n```\nuse Wareki\\Wareki;\n\n$wareki = new Wareki;\necho $wareki-\u003eformat();\n```\n(今日が2019年4月30日なら)\n\u003e 平成31年\n\n### 元号\n\n```\n$wareki = new Wareki('2019-04-30');\necho $wareki-\u003eformat('{gengou}{nendo}年');\n```\n\u003e 平成31年\n\n```\n$wareki = new Wareki('2019-04-30');\necho $wareki-\u003eformat('{gengou.short}.{nendo}');\n```\n\u003e H.31\n\n### 年度を漢数字にする\n\n```\n$wareki = new Wareki('2019-04-30');\necho $wareki-\u003eformat('{gengou}{nendo.kanji}年');\n```\n\u003e 平成三十一年\n\n```\n$wareki = new Wareki('2019-05-01');\necho $wareki-\u003eformat('{gengou}{nendo.kanji}年');\n```\n\u003e 令和元年\n\n```\n$wareki = new Wareki('2019-05-01');\necho $wareki-\u003eformat('{gengou}の{nendo.kansuji}年');\n```\n\u003e 令和の一年\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutaki323%2Fwareki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyutaki323%2Fwareki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutaki323%2Fwareki/lists"}