Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

File System Watcher Laravel Package

spatie/file-system-watcher

React to file system changes from PHP using Spatie’s watcher powered by Node’s chokidar. Watch one or more paths and run callbacks on create, update, delete, or any change events. Useful for build tools, dev workflows, and background monitoring.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature: Enables real-time, event-driven workflows (e.g., auto-processing uploaded images, triggering build pipelines, or syncing directories) without manual polling
  • Roadmap: Supports building scalable event-driven architectures in PHP/Laravel applications, reducing custom infrastructure needs for file-based triggers
  • Build vs Buy: Avoids reinventing filesystem monitoring logic; Spatie's maintained solution offers proven reliability vs. building from scratch
  • Use Cases: Media processing pipelines, automated backups, log analysis, CI/CD triggers, and dynamic configuration reloading

When to Consider This Package

  • Adopt when:
    • Building PHP/Laravel applications requiring real-time filesystem events
    • Operating in Linux/macOS environments (chokidar dependency limitations on Windows)
    • Needing lightweight, non-polling monitoring with minimal setup
    • Already using Node.js for other tooling (chokidar is required)
  • Look elsewhere if:
    • Working in Windows-only environments (chokidar has known issues)
    • Deploying in serverless environments (requires long-running processes)
    • Handling extremely high-volume file changes (native inotify may be more efficient)
    • Simple cron-based checks suffice for your use case

How to Pitch It (Stakeholders)

Executives: "This package automates critical workflows like image processing and log analysis in real-time—turning file changes into actionable business events without manual intervention. With zero licensing costs and seamless integration into existing systems, it reduces operational overhead while accelerating time-to-value for user-facing features."
Engineering: "A battle-tested wrapper around chokidar with clean PHP API, seamless Laravel integration, and Supervisor-ready configuration. Handles all filesystem events reliably with zero polling overhead, and integrates into existing pipelines with 2 lines of code. MIT-licensed and actively maintained by Spatie—a trusted open-source leader with 249+ stars and regular updates."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui