{"id":27889729,"url":"https://github.com/gabbanaesteban/mastermind","last_synced_at":"2025-05-05T10:25:55.049Z","repository":{"id":54754499,"uuid":"334770128","full_name":"gabbanaesteban/mastermind","owner":"gabbanaesteban","description":"Mastermind game implementation in PHP","archived":false,"fork":false,"pushed_at":"2021-02-10T00:34:49.000Z","size":230,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T07:14:51.048Z","etag":null,"topics":["game","mastermind","mastermind-game"],"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/gabbanaesteban.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":"2021-01-31T22:25:58.000Z","updated_at":"2023-03-09T00:24:17.000Z","dependencies_parsed_at":"2022-08-14T01:50:33.269Z","dependency_job_id":null,"html_url":"https://github.com/gabbanaesteban/mastermind","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbanaesteban%2Fmastermind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbanaesteban%2Fmastermind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbanaesteban%2Fmastermind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabbanaesteban%2Fmastermind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabbanaesteban","download_url":"https://codeload.github.com/gabbanaesteban/mastermind/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252479406,"owners_count":21754562,"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":["game","mastermind","mastermind-game"],"created_at":"2025-05-05T10:25:54.402Z","updated_at":"2025-05-05T10:25:55.029Z","avatar_url":"https://github.com/gabbanaesteban.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"/art/socialcard.png\" alt=\"Social Card of Mastermind\"\u003e\u003c/p\u003e\n\n# Mastermind\n\n[![Latest Stable Version](https://poser.pugx.org/gabbanaesteban/mastermind/v)](//packagist.org/packages/gabbanaesteban/mastermind) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/gabbanaesteban/mastermind/tests?label=tests)](//github.com/gabbanaesteban/mastermind/actions) [![Total Downloads](https://poser.pugx.org/gabbanaesteban/mastermind/downloads)](//packagist.org/packages/gabbanaesteban/mastermind) [![Latest Unstable Version](https://poser.pugx.org/gabbanaesteban/mastermind/v/unstable)](//packagist.org/packages/gabbanaesteban/mastermind) [![License](https://poser.pugx.org/gabbanaesteban/mastermind/license)](LICENSE.md)\n\nThis package is an implementation of the Mastermind game.\n\n## Requirements\n\nThis package requires PHP 7.4 or higher.\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require gabbanaesteban/mastermind\n```\n\n## Basic Usage\n\n```php\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nuse Gabbanaesteban\\Mastermind\\Mastermind;\nuse Gabbanaesteban\\Mastermind\\Color;\n\n$mastermind = Mastermind::withRandomCode();\n\n//OR\n\n$mastermind = new Mastermind([\n    Color::YELLOW, Color::GREEN, Color::PINK, Color::YELLOW\n]);\n\n$mastermind-\u003egetHints([\n    Color::BLUE, Color::BLUE, Color::YELLOW, Color::YELLOW\n]); // ['white', 'black']\n```\n\n## Testing\n\nYou can run the tests with:\n\n```bash\ncomposer test\n```\n\n## Credits\n\n- [Esteban De la Rosa](https://github.com/gabbanaesteban)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabbanaesteban%2Fmastermind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabbanaesteban%2Fmastermind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabbanaesteban%2Fmastermind/lists"}