{"id":26453204,"url":"https://github.com/huyduc1602/demo_laminas_docker","last_synced_at":"2026-04-18T02:31:26.971Z","repository":{"id":232166870,"uuid":"782498848","full_name":"huyduc1602/demo_laminas_docker","owner":"huyduc1602","description":"Demo dự án laminas sử dụng docker","archived":false,"fork":false,"pushed_at":"2024-04-08T11:24:35.000Z","size":51373,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T18:54:28.953Z","etag":null,"topics":["batch","docker","laminas","nginx","php","redis","supervisor"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/huyduc1602.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-05T12:16:54.000Z","updated_at":"2025-03-05T11:49:16.000Z","dependencies_parsed_at":"2025-03-18T18:57:13.383Z","dependency_job_id":null,"html_url":"https://github.com/huyduc1602/demo_laminas_docker","commit_stats":null,"previous_names":["huyduc1602/demo_laminas_docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huyduc1602/demo_laminas_docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huyduc1602%2Fdemo_laminas_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huyduc1602%2Fdemo_laminas_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huyduc1602%2Fdemo_laminas_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huyduc1602%2Fdemo_laminas_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huyduc1602","download_url":"https://codeload.github.com/huyduc1602/demo_laminas_docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huyduc1602%2Fdemo_laminas_docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["batch","docker","laminas","nginx","php","redis","supervisor"],"created_at":"2025-03-18T18:43:48.087Z","updated_at":"2026-04-18T02:31:26.955Z","avatar_url":"https://github.com/huyduc1602.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEMO LAMINAS DOCKER\n\nThis is a brief description of what this project is about.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\nWhat things you need to install the software and how to install them.\n\n### Installation\n\nA step by step series of examples that tell you how to get a development environment running.\n\n## Running the tests\nChạy task bất đồng bộ sử dụng mezzio-swoole\n\nDemo tạo 1 task trong swoole\n```\n- Tạo file app\\UploadFile\\Config\\module.config.php\n```\n```\n- Tạo file app\\UploadFile\\Task\\TestUploadListener.php extends \\GrootSwoole\\BaseTaskEventListener\n```\n```\n- Tạo file app\\UploadFile\\Task\\TestUploadTask.php extends \\GrootSwoole\\BaseTaskEvent\n```\n```\n- Tạo app\\UploadFile\\ConfigProvider.php\n```\n\nThêm dòng sau vào file  `config\\config.php`:\n\n`UploadFile\\ConfigProvider::class`\n\nThêm dòng sau vào phần `autoload` của file `composer.json` :\n\n`\"UploadFile\\\\\" : \"app/UploadFile/\"`\n\nSau đó chạy lệnh\n\n `php \\var\\www\\projects\\laminas_mvc_core\\composer.phar dump`\n\nRestart supervisor\n\n`supervisorctl status` (kiểm tra tên program)\n\n`supervisorctl restart demo_task`\n\n\nBắt đầu swoole\n\n`docker exec -it php_apache_debian bash`\n\n`cd demo_bg`\n\n` php ./laminas mezzio:swoole:start`\n\nKiểm tra các process đang chạy\n\n`ps aux`\n\nChạy test như sau:\n\n` curl -sk -X POST -H 'content-type: application/json' https://localhost:8080/api/test-upload -d '{\"file\": \"abc\",\"size\": \"123\"}'  \u003e ./debug.html`\n\nChạy lệnh sau để theo dõi log:\n\n`docker exec -t php_apache_debian tail -f -n 20 /var/www/projects/demo_bg/logs/kafka-consumer.log`\n\n## Deployment\n\nAdd additional notes about how to deploy this on a live system.\n\n## Built With\n\n* [Laminas](https://getlaminas.org/) - The web framework used\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning.\n\n## Authors\n\n**Hoang Huy Duc** - *Groot* - [HoangHuyDuc](https://github.com/huyduc1602)\n\nSee also the list of [contributors](https://github.com/yourname/yourproject/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* Hat tip to anyone whose code was used\n* Inspiration\n* etc","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuyduc1602%2Fdemo_laminas_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuyduc1602%2Fdemo_laminas_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuyduc1602%2Fdemo_laminas_docker/lists"}