{"id":20103168,"url":"https://github.com/dotkernel/pingu","last_synced_at":"2025-10-19T17:16:18.602Z","repository":{"id":50750576,"uuid":"271231299","full_name":"dotkernel/pingu","owner":"dotkernel","description":"Application for Queue , using swoole and Lamins // Mezzio","archived":false,"fork":false,"pushed_at":"2022-08-01T09:18:48.000Z","size":38,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-13T04:41:37.724Z","etag":null,"topics":["laminas","mezzio","microservice","psr-12","psr-15","queue","swoole"],"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/dotkernel.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":"2020-06-10T09:11:15.000Z","updated_at":"2023-04-01T08:34:44.000Z","dependencies_parsed_at":"2022-09-22T17:11:45.302Z","dependency_job_id":null,"html_url":"https://github.com/dotkernel/pingu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fpingu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fpingu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fpingu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotkernel%2Fpingu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotkernel","download_url":"https://codeload.github.com/dotkernel/pingu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241542659,"owners_count":19979367,"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":["laminas","mezzio","microservice","psr-12","psr-15","queue","swoole"],"created_at":"2024-11-13T17:34:32.682Z","updated_at":"2025-10-19T17:16:13.539Z","avatar_url":"https://github.com/dotkernel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pingu\nApplication for Queue , using swoole and Lamins // Mezzio\n\n# Installing DotKernel `pingu`\n\n- [Installing DotKernel `pingu`](#installing-dotkernel-pingu)\n    - [Installation](#installation)\n        - [Composer](#composer)\n    - [Choose a destination path for DotKernel `pingu` installation](#choose-a-destination-path-for-dotkernel-pingu-installation)\n    - [Installing the `pingu` Composer package](#installing-the-pingu-composer-package)\n        - [Installing DotKernel pingu](#installing-dotkernel-pingu)\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 `pingu` \n\nExample:\n\n- absolute path `/var/www/pingu`\n- or relative path `pingu` (equivalent with `./pingu`)\n\n## Installing DotKernel `pingu`\n\nAfter choosing the path for DotKernel (`pingu` will be used for the remainder of this example) it must be installed. \n\n#### Installing DotKernel `pingu` 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/pingu.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/mail.local.php.dist`, `config/autoload/notification.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 and fill in the `database` configuration\n- Edit `config/autoload/notification.php` by filling the 'protocol' and 'host' configuration\n- Add smtp credentials in `config/autoload/mail.local.php` if you want your application to send mails on registration etc.\n- Create `data/logs` folder and leave it empty\n\n\u003e Charset recommendation: utf8mb4_general_ci  \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$ vendor/bin/qjitsu work\n$ vendor/bin/qjitsu scheduler:run --interval=1\n```\n\n\u003e Tip: use --interval=1 on dev only\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\u003e If `config-cache.php` is present that config will be loaded regardless of the `ConfigAggregator::ENABLE_CACHE` in `config/autoload/mezzio.global.php`\n\n## Daemons (services) files content\n```bash\napp-main.service\n[Unit]\nDescription=pingu 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-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/vendor/bin/qjitsu work\n\n[Install]\nWantedBy=app-main.service\n```\n\n```bash\napp-queue-scheduler.service\n[Unit]\nDescription=Queue scheduler 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/vendor/bin/qjitsu scheduler:run --interval=1\n\n[Install]\nWantedBy=app-main.service\n```\n\n```bash\napp-swoole.service\n[Unit]\nDescription=pingu 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%2Fpingu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotkernel%2Fpingu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotkernel%2Fpingu/lists"}