{"id":20940033,"url":"https://github.com/alexp11223/php-project-lvl1","last_synced_at":"2026-04-24T23:31:45.795Z","repository":{"id":56944750,"uuid":"194639276","full_name":"AlexP11223/php-project-lvl1","owner":"AlexP11223","description":"Small logic games involving basic arithmetical operations and number properties. Project 1 of https://hexlet.io courses.","archived":false,"fork":false,"pushed_at":"2019-07-31T08:37:27.000Z","size":58,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T20:53:05.675Z","etag":null,"topics":["composer","educational","hexlet","hexlet-projects","logic-game","php"],"latest_commit_sha":null,"homepage":"","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/AlexP11223.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-07-01T09:11:11.000Z","updated_at":"2020-12-03T04:49:38.000Z","dependencies_parsed_at":"2022-08-21T02:40:24.605Z","dependency_job_id":null,"html_url":"https://github.com/AlexP11223/php-project-lvl1","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexP11223%2Fphp-project-lvl1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexP11223%2Fphp-project-lvl1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexP11223%2Fphp-project-lvl1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexP11223%2Fphp-project-lvl1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexP11223","download_url":"https://codeload.github.com/AlexP11223/php-project-lvl1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243331936,"owners_count":20274364,"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":["composer","educational","hexlet","hexlet-projects","logic-game","php"],"created_at":"2024-11-18T23:08:39.396Z","updated_at":"2026-04-24T23:31:45.766Z","avatar_url":"https://github.com/AlexP11223.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maintainability](https://api.codeclimate.com/v1/badges/468d4fe080e5f595b8f7/maintainability)](https://codeclimate.com/github/AlexP11223/php-project-lvl1/maintainability)\n[![Build Status](https://travis-ci.org/AlexP11223/php-project-lvl1.svg?branch=master)](https://travis-ci.org/AlexP11223/php-project-lvl1)\n\n# Brain Games\n\nSmall logic games involving basic arithmetical operations and number properties. Each game consists of up to 3 rounds.\n\nThis is an educational project implemented during https://hexlet.io courses aimed at setting up the environment, getting familiar with some best practices and creating a good simple architecture.\n\n## Installation\n\n- Install PHP 7.2+ and [Composer](https://getcomposer.org/doc/00-intro.md#globally).\n- Run `composer global require alexp11223/brain-games`.\n- Make sure that the Composer global bin dir (`composer global config bin-dir --absolute`) is in your `PATH`.\n\n[![asciicast](https://asciinema.org/a/QVG5NAiTP3WYnMqsQfFYyfyTL.svg)](https://asciinema.org/a/QVG5NAiTP3WYnMqsQfFYyfyTL)\n\n## Usage\n\nRun the following games:\n\n- `brain-even`\n- `brain-calc`\n- `brain-gcd`\n- `brain-progression`\n- `brain-prime`\n\n### brain-even\n\nAnswer whether the given number is even.\n\n[![asciicast](https://asciinema.org/a/zL2EqYUaBbd0mQuYadXM9Dk6L.svg)](https://asciinema.org/a/zL2EqYUaBbd0mQuYadXM9Dk6L)\n\n### brain-calc\n\nEnter the result of the arithmetic expression.\n\n[![asciicast](https://asciinema.org/a/oOPp5OizYR81IJ0996bMkKCDt.svg)](https://asciinema.org/a/oOPp5OizYR81IJ0996bMkKCDt)\n\n### brain-gcd\n\nFind the greatest common divisor of two numbers.\n\n[![asciicast](https://asciinema.org/a/COnf8tojSIjjg0eBYcJLWtt8G.svg)](https://asciinema.org/a/COnf8tojSIjjg0eBYcJLWtt8G)\n\n### brain-progression\n\nEnter the number missing in the arithmetic progression.\n\n[![asciicast](https://asciinema.org/a/Z2Iu0xak4QY9UUzpcunvgf2xE.svg)](https://asciinema.org/a/Z2Iu0xak4QY9UUzpcunvgf2xE)\n\n### brain-prime\n\nAnswer whether the given number is prime.\n\n[![asciicast](https://asciinema.org/a/gdeINWYajikDbWeIYvzqRE5I7.svg)](https://asciinema.org/a/gdeINWYajikDbWeIYvzqRE5I7)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexp11223%2Fphp-project-lvl1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexp11223%2Fphp-project-lvl1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexp11223%2Fphp-project-lvl1/lists"}