{"repo":"codeartbtw/laravel-debounce","free":true,"listed":false,"github":"https://github.com/codeartbtw/laravel-debounce","clone":"git clone https://github.com/codeartbtw/laravel-debounce.git","description":"a laravel package that gives you a debounce effect on jobs, notifications and artisan commands with a nice report of occurrences.","language":"PHP","stars":148,"topics":["composer","laravel","package","php","queues","notifications","artisan-commands","debounce"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Laravel debounce by zackaj Laravel-debounce allows you to accumulate / debounce a job, notification or command to avoid spamming your users and your app's queue. It also tracks and registers every request occurrence and gives you a nice report tracking with information like ip address and authenticated user per request. Table of Contents - Introduction - Features - Demo - Installation - Prerequisites - Composer - Configuration - Usage - Basic usage - Advanced usage - Make commands - No facade usage - Report Tracking - Before After Hooks - Override Timestamp - Bonus CLI Debounce - Debugging And Monitoring - Testing - Known Issues - Contributing - License Introduction This laravel package uses UniqueJobs (atomic locks) and caching to run only one instance of a task in a debounced interval of x seconds delay. Everytime a new activity is recorded (occurrence), the execution is delayed by x seconds. Features - Debounce Notifications, Jobs and Artisan Commands Basic usage & Advanced usage - Report Tracking - Bonus CLI Debounce [!WARNING] Debouncing artisan commands requires laravel version =11 Demo A debounced notification to bulk notify users about new uploaded files. https://github.com/user-attachments/assets/b1d5aafd-256d-4f6f-b31a-0d6dc516793b See Code FileUploaded.php DemoController.php Installation Prerequisites - PHP = 8.1 - Laravel application ( = 10.x) - Up and running cache system that supports atomic locks - Up and running queue worker Composer Configuration Optionally p","default_branch":null,"files":null,"tree":[],"storefront":"/r/codeartbtw","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codeartbtw/laravel-debounce/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}