Download the PHP package freema/n8n-bundle without Composer
On this page you can find all versions of the php package freema/n8n-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download freema/n8n-bundle
More information about freema/n8n-bundle
Files in freema/n8n-bundle
Package n8n-bundle
Short Description Symfony bundle for elegant integration with n8n workflow automation platform
License MIT
Homepage https://github.com/freema/n8n-bundle
Informations about the package n8n-bundle
Symfony N8n Bundle
Elegant integration between Symfony applications and n8n workflow automation platform.
Features
- Type-safe communication using PHP interfaces
- UUID tracking system for request/response pairing
- Flexible communication modes: Fire & Forget, Async with callback, Sync
- Robust error handling with retry and circuit breaker
- Event-driven architecture for monitoring and logging
- Multi-instance support for different environments
- Dry run mode for testing without actual sending
Requirements
| Version | PHP | Symfony |
|---|---|---|
| 1.3+ | ^8.2 | 6.4, 7.x |
| 1.3+ | ^8.4 | 8.0 |
| 1.0-1.2 | ^8.1 | 6.4, 7.0 |
Note: Symfony 8.0 requires PHP 8.4+
Quick Start
1. Installation
2. Development with Docker and Taskfile
3. Configuration
4. Entity Implementation
5. Usage
Communication Modes
Fire & Forget
Sends data to n8n and returns immediate response from webhook.
Async with Callback
Sends data + callback URL, n8n processes and returns result.
Sync
Waits for immediate response (if n8n webhook supports it).
HTTP Methods and Content Types
Bundle supports various HTTP methods and content types:
Response Entity Mapping
You can automatically map n8n responses to PHP objects:
Debug Panel
Bundle includes debug panel for Symfony Web Profiler:
Panel shows:
- All N8n requests with UUID, duration, status
- Payload data and response data
- Errors and their details
- Total request count and time
Monitoring and Events
Bundle emits events for each phase of communication:
Test Application
The dev/ directory contains a test application with Docker support (PHP 8.2 + PHP 8.4).
Setup
-
Start Docker containers:
-
Install dependencies:
-
Environment configuration:
- Start development server:
Application will be available at http://localhost:8080
Available Taskfile Commands:
Endpoints:
POST /demo/fire-and-forget- Fire & Forget testPOST /demo/with-callback- Async callback testPOST /demo/sync- Synchronous testGET /demo/health- Health checkPOST /api/n8n/callback- Callback endpointGET /_profiler- Symfony Web Profiler
Example Usage
Forum Post Moderation
Testing
Mock Client
For testing your application without making actual HTTP requests to n8n, use the MockN8nClient:
Mock Client Features
Configure responses:
Assertions:
Inspect requests:
Configure behavior:
Configuration
Complete Configuration
Author
Created by Tomáš Grasl
License
MIT
All versions of n8n-bundle with dependencies
symfony/framework-bundle Version ^6.4|^7.0|^8.0
symfony/http-client Version ^6.4|^7.0|^8.0
symfony/uid Version ^6.4|^7.0|^8.0
symfony/routing Version ^6.4|^7.0|^8.0
symfony/event-dispatcher Version ^6.4|^7.0|^8.0
symfony/console Version ^6.4|^7.0|^8.0
symfony/config Version ^6.4|^7.0|^8.0
symfony/dependency-injection Version ^6.4|^7.0|^8.0
symfony/yaml Version ^6.4|^7.0|^8.0
symfony/property-access Version ^6.4|^7.0|^8.0
psr/log Version ^3.0