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

Simple Bus Bridge Laravel Package

bengor-file/simple-bus-bridge

Adapter bridge that integrates BenGorFile's File library with Matthias Noback's SimpleBus, enabling File commands/events to be dispatched through SimpleBus. Install via Composer and run tests with PHPSpec.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Event-Driven Architecture (EDA) Adoption: Enables integration of file-based workflows (e.g., uploads, processing, notifications) into a SimpleBus-powered event bus, unifying messaging across systems. Aligns with roadmaps for decoupled microservices or asynchronous processing.
  • Build vs. Buy: Buy for teams already using SimpleBus (or planning to adopt it) and needing lightweight file-event bridging. Avoid reinventing adapter logic for file operations (e.g., FileUploaded, FileProcessed events).
  • Use Cases:
    • File Processing Pipelines: Trigger downstream services (e.g., image resizing, PDF generation) via events when files are uploaded/stored.
    • Audit/Logging: Publish file metadata (size, type, user) as events for centralized logging or analytics.
    • Legacy System Integration: Bridge file operations in older PHP apps to modern event-driven architectures without rewriting core logic.
  • Tech Stack Alignment: Justifies investment in SimpleBus (or similar event buses) by providing a niche but critical adapter for file systems, reducing friction for adoption.
  • Cost Efficiency: MIT-licensed and minimal overhead (no dependencies beyond SimpleBus/File). Ideal for small-to-medium teams prioritizing speed over custom development.

When to Consider This Package

  • Avoid if:
    • Not using SimpleBus: Without SimpleBus (or a compatible event bus), this package is useless. Evaluate alternatives like Laravel Events, Symfony Messenger, or custom event dispatchers.
    • Modern PHP Ecosystem: Prefer Laravel Filesystem + Events (v8+) or Symfony’s Messenger component for newer projects (better maintenance, community support).
    • High Throughput Needs: SimpleBusBridge is not optimized for performance; use a dedicated queue worker (e.g., RabbitMQ, Redis) for heavy file processing.
    • Active Maintenance: Last release in 2018—assess risk of breaking changes in SimpleBus/File libraries. Consider forking if critical.
    • Alternative File Systems: If using S3, GCS, or local storage with Laravel Vapor, built-in solutions (e.g., StoredEvent) may suffice.
  • Consider if:
    • SimpleBus is core to your stack and file events are a blocker for adoption.
    • Legacy PHP 5.5+ codebase needs incremental modernization via events.
    • Team lacks bandwidth to build a custom file-event adapter.

How to Pitch It (Stakeholders)

For Executives:

*"This package lets us seamlessly integrate file operations (uploads, processing) into our event-driven architecture using SimpleBus—a proven pattern for scalable, decoupled systems. By adopting it, we can:

  • Reduce coupling between file-handling services and the rest of the app.
  • Enable real-time notifications (e.g., ‘File ready for X service’) without custom code.
  • Future-proof our tech stack by aligning with SimpleBus, a battle-tested event bus. It’s a low-risk, high-reward move: minimal cost (MIT license), no vendor lock-in, and immediate ROI for async workflows."

For Engineering:

*"SimpleBusBridge is a lightweight adapter that bridges the gap between file operations and SimpleBus, solving a specific pain point:

  • Pros:
    • Zero dependencies beyond SimpleBus/File (clean integration).
    • Tested (PHPSpec) and documented (though minimal).
    • PHP 5.5+ compatible—works with legacy systems.
  • Cons:
    • Abandoned (last release 2018)—fork if needed for critical updates.
    • Not production-ready for high-scale (no queue optimizations). Recommendation: Use for prototyping or internal tools where SimpleBus is already adopted. For new projects, evaluate Laravel/Symfony alternatives instead."*

For Architects:

*"This package fills a niche in the PHP event-driven ecosystem:

  • Architectural Fit: Ideal if SimpleBus is your core messaging layer and file events are a recurring pattern.
  • Trade-offs:
    • Tight coupling to SimpleBus/File: Hard to swap out later.
    • No modern PHP support: Risk of compatibility issues with newer SimpleBus versions.
  • Alternatives to Explore:
    • Laravel: Use Illuminate\Filesystem\Events + bus facade.
    • Symfony: Leverage Messenger with FileSystemMessage transports. Pitch: Only adopt if SimpleBus is non-negotiable and file events are a critical use case. Otherwise, invest in a more future-proof solution."*
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.
craftcms/url-validator
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony