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

Laravel Pipe Laravel Package

zenapply/laravel-pipe

View on GitHub
Deep Wiki
Context7

Getting Started

  1. Installation: Require the package via Composer:
    composer require vendor/package-name
    
  2. Publish Config: Run the package publisher (if available) to generate config files:
    php artisan vendor:publish --provider="Vendor\PackageName\PackageServiceProvider"
    
  3. First Use Case: Listen for the updated video_converted webhook instead of the deprecated video_transcoded:
    use Vendor\PackageName\Events\VideoConverted;
    
    VideoConverted::listen(function ($payload) {
        // Handle video conversion logic
    });
    

Implementation Patterns

  • Webhook Handling: Replace any existing video_transcoded listeners with video_converted in your event listeners or route definitions.
  • Service Integration: Use the package’s service container bindings (e.g., app('video-processor')) to interact with core functionality.
  • Middleware: Leverage the package’s middleware (if provided) for filtering or transforming payloads before processing:
    $payload = app('video-payload-transformer')->process($rawPayload);
    

Gotchas and Tips

  • Breaking Change: The video_transcoded webhook is deprecated in v2.0.0. Update all listeners or routes immediately to avoid failures.
  • Debugging: Use dd($payload) in your listener to inspect the new video_converted payload structure if behavior differs from video_transcoded.
  • Config Quirks: Check config/package-name.php for updated default values or renamed keys (e.g., webhook_events.video_transcodedwebhook_events.video_converted).
  • Extension Points: Override the VideoConverted event class or its listeners in your EventServiceProvider for custom logic:
    protected $listen = [
        'Vendor\PackageName\Events\VideoConverted' => [
            'App\Listeners\CustomVideoHandler',
        ],
    ];
    
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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity