{"id":19280076,"url":"https://github.com/jinyphp/convert","last_synced_at":"2025-04-22T00:33:17.964Z","repository":{"id":56999343,"uuid":"190376817","full_name":"jinyphp/convert","owner":"jinyphp","description":"unit convert","archived":false,"fork":false,"pushed_at":"2019-08-05T06:34:58.000Z","size":61,"stargazers_count":8,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-01T17:44:48.670Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jinyphp.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}},"created_at":"2019-06-05T10:44:30.000Z","updated_at":"2022-11-15T00:01:31.000Z","dependencies_parsed_at":"2022-08-21T13:50:37.248Z","dependency_job_id":null,"html_url":"https://github.com/jinyphp/convert","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinyphp%2Fconvert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinyphp%2Fconvert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinyphp%2Fconvert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinyphp%2Fconvert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinyphp","download_url":"https://codeload.github.com/jinyphp/convert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250158021,"owners_count":21384334,"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":[],"created_at":"2024-11-09T21:16:50.806Z","updated_at":"2025-04-22T00:33:17.644Z","avatar_url":"https://github.com/jinyphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 단위변환 클래스\n순수한 PHP로 제작된 단위 변환 라이브러리 입니다.\n\n## 설치\n지니 단위변환기는 컴포저를 이용하여 배포/설치 됩니다.\n\n```\ncomposer require jiny/convert\n```\n\n## 사용방법\n신규 파일을 생성후, 컴포저 오토로드 코드를 삽입합니다.\n단위 변환에 대한 객체를 생성합니다.\n\n### 셈플코드\n```php\n\u003c?php\n// 오토로드\nrequire \"../../../autoload.php\";\n\n// 객체생성 \n$inch = new Jiny\\Convert\\Length\\Inch(1);\necho $inch-\u003ecenti();\n```\n\n### 단위값 설정\n변환값의 설정은 2가지 방식으로 제공을 합니다.\n먼저, 변환되는 단위 값을 객체 생성 인자값으로 전달 합니다.  \n또는 객체 생성후에 `setter 메소드`를 통하여 객체의 변환값을 변경할 수 있습니다.\n\n```php\n$inch-\u003esetValue(100);\n```\n\n### 변환값 확인\n단위 객체에 설정된 기본값을 이용하여, 변환된 값을 출력할 수 있습니다.\n변환 하고자 하는 메소드를 호출합니다.\n\n```php\n// 설정된 인치(inch) 값을 센치미터로 변환 합니다.\necho $inch-\u003ecenti();\n```\n## 단위변환 종류\njiny convert는 다양한 종류의 단위를 변환할 수 있습니다.\n각각의 단위는 별도의 개발 클래스로 제작되어 있습니다.\n\n### [길이](length.md)\n단위 길이를 변경할 수 있습니다.\n- 미터\n- 센치\n- 밀리미터\n- 킬로미터\n- 인치\n- 피트\n- 야드\n- 마일\n- 자\n- 간\n- 정\n- 리\n- 해리\n\n### 넓이\n- 제곱미터\n- 야르\n- 헥타르\n- 제곱킬로미터\n- 제곱피트\n- 제곱야드\n- 에이커\n- 평방자\n- 평\n- 단보\n- 정보\n\n### 무게\n- 밀리그램\n- 그램\n- 킬로그램\n- 톤\n- 킬로톤\n- 그래인\n- 온스\n- 파운드\n- 돈\n- 냥\n- 근\n- 환\n\n### 부피\n- 시시\n- 밀리리터\n- 데시리터\n- 리터\n- 세제곱 센치미터\n- 세제곱 미터\n- 세제곱 인치\n- 세제곱 피트\n- 세제곱 야드\n- 갤런\n- 배럴\n- 온스\n- 홈\n- 되\n- 말\n\n### 온도\n- 섭씨\n- 화씨\n- 절대\n- R\n\n### 압력\n- 기압\n- 파스칼\n- 헥토 파스칼\n- 킬로 파스칼\n- 메가 파스칼\n- dyne\n- 밀리바\n- 바\n- kfg/cm^2\n- 파사이\n- 수은주 밀리미터\n- inchHg\n- 수주밀리미터\n- inchH2O\n\n### 속도\n- m/s\n- m/h\n- km/s\n- km/h\n- in/s\n- in/h\n- ft/s\n- ft/h\n- mi/s\n- mi/h\n- 노트(kn)\n- 마하(mach)\n\n### 연비\n- km/l\n- mi/g\n- l/100km\n\n### 데이터\n- 비트\n- 바이트\n- 킬로 바이트\n- 메가 바이트\n- 기가 바이트\n- 테라 바이트\n- 페타 바이트\n- 엑사 바이트\n\n### 시간\n\n## [컨트리뷰터](https://github.com/jinyphp/convert/graphs/contributors)\n본 저장소는 다수의 개발자의 기여에 의해서 운영이 됩니다. \n\n먼저 본 저장소를 `fork`합니다. 포크받은 자신의 저장소에서 코드를 수정 또는 작성을 합니다.\n작성후에 `pull-request`를 해주시길 바랍니다. 코드는 PSR 코드 규칙을 따라서 작성을 해주기실 바랍니다.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinyphp%2Fconvert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinyphp%2Fconvert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinyphp%2Fconvert/lists"}