{"id":20103172,"url":"https://github.com/dotkernel/pong","last_synced_at":"2026-05-11T10:33:13.851Z","repository":{"id":239582598,"uuid":"491850751","full_name":"dotkernel/pong","owner":"dotkernel","description":"Microservice skeleton architecture using swoole and redis","archived":false,"fork":false,"pushed_at":"2022-06-29T12:13:33.000Z","size":45,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T17:28:13.713Z","etag":null,"topics":[],"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/dotkernel.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":"2022-05-13T10:15:09.000Z","updated_at":"2024-05-13T10:57:55.000Z","dependencies_parsed_at":"2024-05-13T13:11:27.409Z","dependency_job_id":null,"html_url":"https://github.com/dotkernel/pong","commit_stats":null,"previous_names":["dotkernel/pong"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dotkernel/pong","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fpong","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fpong/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fpong/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fpong/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotkernel","download_url":"https://codeload.github.com/dotkernel/pong/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fpong/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32890664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":[],"created_at":"2024-11-13T17:34:33.800Z","updated_at":"2026-05-11T10:33:13.831Z","avatar_url":"https://github.com/dotkernel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pong\nApplication for Queue , using swoole and Lamins\n\n# Installing DotKernel `pong`\n\n- [Installing DotKernel `pong`](#installing-dotkernel-pong)\n    - [Installation](#installation)\n        - [Composer](#composer)\n    - [Choose a destination path for DotKernel `pong` installation](#choose-a-destination-path-for-dotkernel-pong-installation)\n    - [Installing the `pong` Composer package](#installing-the-pong-composer-package)\n        - [Installing DotKernel pong](#installing-dotkernel-pong)\n    - [Configuration - First Run](#configuration---first-run)\n    - [Testing (Running)](#testing-running)\n\n### Composer\n\nInstallation instructions:\n\n- [Composer Installation -  Linux/Unix/OSX](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)\n- [Composer Installation - Windows](https://getcomposer.org/doc/00-intro.md#installation-windows)\n\n\u003e If you have never used composer before make sure you read the [`Composer Basic Usage`](https://getcomposer.org/doc/01-basic-usage.md) section in Composer's documentation\n\n## Choosing an installation path for DotKernel `pong` \n\nExample:\n\n- absolute path `/var/www/pong`\n- or relative path `pong` (equivalent with `./pong`)\n\n## Installing DotKernel `pong`\n\nAfter choosing the path for DotKernel (`pong` will be used for the remainder of this example) it must be installed. \n\n#### Installing DotKernel `pong` using git clone\n\nThis method requires more manual input, but it ensures that the default branch is installed, even if it is not released. Run the following command:\n\n```bash\n$ git clone https://github.com/dotkernel/pong.git .\n```\n\nThe dependencies have to be installed separately, by running this command\n```bash\n$ composer install\n```\n\nThe setup asks for configuration settings regarding injections (type `0` and hit `enter`) and a confirmation to use this setting for other packages (type `y` and hit `enter`)\n\n## Configuration - First Run\n\n- Remove the `.dist` extension from the files `config/autoload/local.php.dist`, `config/autoload/redis.local.php.dist`, `config/autoload/swoole.local.php.dist`\n- Edit `config/autoload/local.php` according to your dev machine\n\n## Testing (Running)\n\nNote: **Do not enable dev mode in production**\n\n- Run the following commands in your project's directory ( in different tabs ):\n\n```bash\n$ redis-cli\n$ php bin/dot-swoole start\n$ php bin/cli.php process\n$ php bin/cli.php result\n```\n\n**NOTE:**\nIf you are still getting exceptions or errors regarding some missing services, try running the following command\n\n```bash\n$ php bin/clear-config-cache.php\n```\n\n## Daemons (services) files content\n```bash\napp-main.service\n[Unit]\nDescription=pong startup service\nStartLimitIntervalSec=1\n\n[Service]\n#The dummy program will exit\nType=oneshot\nExecStart=/bin/true\nRemainAfterExit=yes\n\n[Install]\nWantedBy=multi-user.target\n```\n\n```bash\napp-process-queue.service\n[Unit]\nDescription=Queue startup service\nAfter=mysqld.service\nPartOf=app-main.service\nStartLimitIntervalSec=1\n\n[Service]\nType=simple\nRestart=always\nRestartSec=1\nUser=root\nExecStart=/usr/bin/php /var/www/html/app-directory/bin/cli.php process\n\n[Install]\nWantedBy=app-main.service\n```\n\n```bash\napp-result-queue.service\n[Unit]\nDescription=Queue result service\nAfter=mysqld.service\nPartOf=app-main.service\nStartLimitIntervalSec=1\n\n[Service]\nType=simple\nRestart=always\nRestartSec=1\nUser=root\nExecStart=/usr/bin/php /var/www/html/app-directory/bin/cli.php result\n\n[Install]\nWantedBy=app-main.service\n```\n\n```bash\napp-swoole.service\n[Unit]\nDescription=pong startup service\nAfter=mysqld.service\nPartOf=app-main.service\nStartLimitIntervalSec=1\n\n[Service]\nType=simple\nRestart=always\nRestartSec=1\nUser=root\nExecStart=/usr/bin/php /var/www/html/app-directory/bin/dot-swoole start\nExecStop=/usr/bin/php /var/www/html/app-directory/bin/dot-swoole stop\n\n[Install]\nWantedBy=app-main.service\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fpong","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotkernel%2Fpong","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fpong/lists"}