{"id":16314917,"url":"https://github.com/cebe/color-nick","last_synced_at":"2025-03-22T20:36:11.587Z","repository":{"id":22457079,"uuid":"25795636","full_name":"cebe/color-nick","owner":"cebe","description":"A simple PHP lib that can color nick names to make them distinguishable in a chat room.","archived":false,"fork":false,"pushed_at":"2014-10-27T06:26:59.000Z","size":201,"stargazers_count":8,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-11T21:55:49.888Z","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/cebe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-26T23:35:48.000Z","updated_at":"2020-05-11T12:22:15.000Z","dependencies_parsed_at":"2022-08-20T15:20:22.677Z","dependency_job_id":null,"html_url":"https://github.com/cebe/color-nick","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fcolor-nick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fcolor-nick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fcolor-nick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fcolor-nick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cebe","download_url":"https://codeload.github.com/cebe/color-nick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221839454,"owners_count":16889620,"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-10T21:55:36.516Z","updated_at":"2024-10-28T14:20:19.773Z","avatar_url":"https://github.com/cebe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"color-nick\n==========\n\nA simple PHP lib that can color nick names to make them distinguishable in a chat room.\nEach color is unique to the name so each name keeps its color regardless of the time, system\nor whatever circumstances. This is done using a `sha1` hash on the name and taking the first 7\ncharacters in it hex representation to calculate the color.\n\n[![Latest Stable Version](https://poser.pugx.org/cebe/color-nick/v/stable.png)](https://packagist.org/packages/cebe/color-nick)\n[![Total Downloads](https://poser.pugx.org/cebe/color-nick/downloads.png)](https://packagist.org/packages/cebe/color-nick)\n\nRequirements\n------------\n\nPHP 5.4 or higher.\n\nInstallation\n------------\n\nUsing [Composer](http://getcomposer.org):\n\n    composer require cebe/color-nick\n\nUsage\n-----\n\n```php\n\u003c?php\n\nuse cebe\\colornick\\Color;\n\nrequire(__DIR__ . '/vendor/autoload.php');\n\n$color = Color::calculateColor($name);\n```\n\nSee [example.php](example.php) for a working example.\nHere is a screenshot of the output:\n\n![Screenshot of color-nick library rendering result](screenshot.png)\n\nLicense\n-------\n\nMIT, see [LICENSE](LICENSE.md) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebe%2Fcolor-nick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcebe%2Fcolor-nick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebe%2Fcolor-nick/lists"}