{"id":15672488,"url":"https://github.com/danmichaelo/php-coma","last_synced_at":"2025-08-21T00:30:38.587Z","repository":{"id":12542487,"uuid":"15212565","full_name":"danmichaelo/php-coma","owner":"danmichaelo","description":"Calculate various color distance metrics (delta E) such as CIE76 and CIE94","archived":false,"fork":false,"pushed_at":"2024-07-29T20:55:48.000Z","size":19,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-16T22:57:30.080Z","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/danmichaelo.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":"2013-12-15T23:04:07.000Z","updated_at":"2024-07-29T20:49:03.000Z","dependencies_parsed_at":"2024-06-20T21:49:12.665Z","dependency_job_id":"fd0b0747-586d-4497-882a-6f39f79c35fe","html_url":"https://github.com/danmichaelo/php-coma","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"946cd4c26f009cdc210d492962456a35eee8fbc3"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmichaelo%2Fphp-coma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmichaelo%2Fphp-coma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmichaelo%2Fphp-coma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmichaelo%2Fphp-coma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danmichaelo","download_url":"https://codeload.github.com/danmichaelo/php-coma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230471175,"owners_count":18231193,"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-10-03T15:27:11.096Z","updated_at":"2024-12-19T17:08:48.640Z","avatar_url":"https://github.com/danmichaelo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"CoMa – PHP Color Math Library\n===============\n\n[![Build Status](https://travis-ci.org/danmichaelo/php-coma.png?branch=master)](https://travis-ci.org/danmichaelo/php-coma)\n[![Coverage Status](https://coveralls.io/repos/danmichaelo/php-coma/badge.png?branch=master)](https://coveralls.io/r/danmichaelo/php-coma?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/danmichaelo/coma/version.png)](https://packagist.org/packages/danmichaelo/coma)\n[![Total Downloads](https://poser.pugx.org/danmichaelo/coma/downloads.png)](https://packagist.org/packages/danmichaelo/coma)\n\nPhp library to convert between [sRGB](//en.wikipedia.org/wiki/SRGB), [XYZ](//en.wikipedia.org/wiki/XYZ_color_space), and [Lab](//en.wikipedia.org/wiki/Lab_color_space) color spaces, and calculate various [color distance metrics](//en.wikipedia.org/wiki/Color_difference) (delta E). Currently CIE76 and CIE94 are implemented, but I plan to implement more.\n\n```php\nuse Danmichaelo\\Coma\\ColorDistance,\n\tDanmichaelo\\Coma\\sRGB;\n\n$color1 = new sRGB(1, 5, 250);\n$color2 = new sRGB(0, 0, 208);\n\n$cd = new ColorDistance;\n$cie94 = $cd-\u003ecie94($color1, $color2);\necho 'The CIE94 ∆E is ' . $cie94 . ' between ' . $color1-\u003etoHex() . ' and ' . $color2-\u003etoHex() . '.';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanmichaelo%2Fphp-coma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanmichaelo%2Fphp-coma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanmichaelo%2Fphp-coma/lists"}