{"id":18552080,"url":"https://github.com/baraja-core/color","last_synced_at":"2025-08-31T13:40:04.690Z","repository":{"id":62491743,"uuid":"405025056","full_name":"baraja-core/color","owner":"baraja-core","description":"🎨 Normalize HTML colors.","archived":false,"fork":false,"pushed_at":"2022-09-08T13:35:21.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T11:11:23.365Z","etag":null,"topics":["color","colors","html-color","normalizer","php-color","validator"],"latest_commit_sha":null,"homepage":"https://php.baraja.cz","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/baraja-core.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":"2021-09-10T09:23:55.000Z","updated_at":"2022-03-12T10:22:33.000Z","dependencies_parsed_at":"2022-11-02T09:31:11.787Z","dependency_job_id":null,"html_url":"https://github.com/baraja-core/color","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"baraja-core/template","purl":"pkg:github/baraja-core/color","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fcolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fcolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fcolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fcolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baraja-core","download_url":"https://codeload.github.com/baraja-core/color/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fcolor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272988781,"owners_count":25026959,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["color","colors","html-color","normalizer","php-color","validator"],"created_at":"2024-11-06T21:12:43.751Z","updated_at":"2025-08-31T13:40:04.668Z","avatar_url":"https://github.com/baraja-core.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP Color normalizer\n====================\n\nNormalize HTML colors.\n\nIdea\n----\n\nOn websites, we often need to manipulate the colours we get in different ways. For example, from the user or from another application layer.\n\nThis package provides a simple way to normalize the received color to a canonical shape.\n\nWhen normalizing, you can choose to convert to short or long notation:\n\nExamples:\n\n```php\nColor::normalize('#aaA'); // '#aaa'\nColor::normalize('#abcd'); // '#abc'\nColor::normalize('#aaAAaa'); // '#aaa'\nColor::normalize('#aaA', Color::FORMAT_LONG); // '#aaaaaa'\n```\n\nA second parameter can be used for formatting, which has possible values:\n\n- `Color::FORMAT_SHORT` prefers short notation (if possible)\n- `Color::FORMAT_LONG` always returns a long notation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaraja-core%2Fcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaraja-core%2Fcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaraja-core%2Fcolor/lists"}