{"id":25411304,"url":"https://github.com/labodidavid/laravel-queue-service-win","last_synced_at":"2026-05-09T14:12:00.241Z","repository":{"id":275763284,"uuid":"927098810","full_name":"LabodiDavid/laravel-queue-service-win","owner":"LabodiDavid","description":"Laravel Queue Worker Wrapper as a Win service using NSSM.","archived":false,"fork":false,"pushed_at":"2025-02-04T12:34:53.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T10:17:03.080Z","etag":null,"topics":["artisan","laravel","php","powershell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/LabodiDavid.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":"2025-02-04T12:02:17.000Z","updated_at":"2025-02-04T12:34:57.000Z","dependencies_parsed_at":"2025-02-04T13:32:28.839Z","dependency_job_id":"8e799345-f659-4f1e-80b7-1f709ca5e649","html_url":"https://github.com/LabodiDavid/laravel-queue-service-win","commit_stats":null,"previous_names":["labodidavid/laravel-queue-service-win"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabodiDavid%2Flaravel-queue-service-win","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabodiDavid%2Flaravel-queue-service-win/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabodiDavid%2Flaravel-queue-service-win/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LabodiDavid%2Flaravel-queue-service-win/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LabodiDavid","download_url":"https://codeload.github.com/LabodiDavid/laravel-queue-service-win/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248845145,"owners_count":21170710,"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":["artisan","laravel","php","powershell"],"created_at":"2025-02-16T10:17:06.902Z","updated_at":"2026-05-09T14:12:00.188Z","avatar_url":"https://github.com/LabodiDavid.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Queue Worker Windows Service\n\n**PowerShell scripts** to install/uninstall a **Laravel Queue Worker Wrapper Script as a Windows service** using [NSSM (Non-Sucking Service Manager)](https://nssm.cc).\n\n## Features\n\n- 🛠️ Automated easy service installation/uninstallation\n- 🔄 **Auto-restarting worker** with configurable delay\n- 📅 **Time-stamped logging** integrated with Laravel's log system\n- 📊 **Dual logging** (file + console if wrapper run directly) with ERROR tagging\n- 🚦 **Process monitoring** with output/error stream handling\n- 📁 Automated NSSM setup (downloaded on first run)\n- 📝 Integrated logging for service operations (NSSM)\n- 🔄 **Automatic service restart** on failure (NSSM)\n- 🛠️ **Self-contained configuration** with automatic path detection\n\n## File Structure\n```\n{LARAVEL_ROOT}/\n\t├── Install-Queue-Worker-Service.ps1       # Service installation script\n\t├── Uninstall-Queue-Worker-Service.ps1     # Service removal script\n\t├── queue-worker.ps1          # Worker process wrapper, this is what the service run\n\t└── /storage/logs/             # Laravel logs (auto-used)\n\t\t├── queue-worker.txt      # Real-time logging by worker wrapper\n\t\t├── queue-service.log # Service output logs (auto-created, handled by NSSM)  \n\t\t└── queue-service-error.log # Service error logs (auto-created, handled by NSSM)\n```\n\n## Installation\n1. **Clone repository:**\n````powershell\ngit clone https://github.com/labodidavid/laravel-queue-service-win.git\n````\n2. **Place scripts** in your Laravel root directory\n3. **Run as Administrator**:\n```powershell\n.\\Install-Queue-Worker-Service.ps1\n```\n4. **In development environments:** Add `/nssm` directory and the scripts to `.gitignore` \n\n**Uninstall** when needed:\n```powershell\n.\\Uninstall-Service.ps1\n```\nAlternatively you can run the worker wrapper without the service install:\n```powershell\n# Run worker directly (no service)\n.\\queue-worker.ps1\n```\n\n## Customization\n\nEdit these in `queue-worker.ps1`:\n```powershell\n# Worker arguments (add --queue, --sleep, etc.)\n$CommandArgs = \"artisan queue:work --tries=3 --timeout=900\"\n\n# Restart delay (seconds)\n$RestartDelay = 10 \n\n# Log location (default: storage/logs/queue-worker.txt)\n$LogPath = \"C:\\custom\\logs\\worker.log\"\n```\n\n\n## Troubleshooting\n- *Permission errors*: Ensure write access to `storage/logs`\n- *Missing PHP*: Verify PHP is in system PATH\n- *Service not starting*: Check `Event Viewer → Windows Logs → Application or ` or `queue-service.log`\n\n## Requirements\n- Windows Server 2012+ / Windows 10+\n- PowerShell 5.1+\n- An initialized Laravel project\n- NSSM (auto-downloaded by install script)\n## Contributing\n\n1.  Fork the repository\n    \n2.  Create a feature branch (`git checkout -b feature/improvement`)\n    \n3.  Commit changes (`git commit -am 'Add some feature'`)\n    \n4.  Push to branch (`git push origin feature/improvement`)\n    \n5.  Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabodidavid%2Flaravel-queue-service-win","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabodidavid%2Flaravel-queue-service-win","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabodidavid%2Flaravel-queue-service-win/lists"}