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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package n8n-bundle

Symfony N8n Bundle

Elegant integration between Symfony applications and n8n workflow automation platform.

Features

Requirements

Bundle PHP Symfony
2.x 8.2+ * 6.4, 7.x, 8.0
1.3 8.2+ 6.4, 7.x
1.0–1.2 8.1+ 6.4, 7.0

* Symfony 8.0 itself requires PHP 8.4+. On PHP 8.2/8.3 the bundle runs with Symfony 6.4 or 7.x; use PHP 8.4+ if you want Symfony 8.0.

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).

Error Handling

All errors thrown by the client extend Freema\N8nBundle\Exception\N8nException:

Exception Thrown when
N8nException Base class for every bundle exception
N8nCommunicationException HTTP error status (>= 400, code = status), a transport failure, or an open circuit breaker
N8nTimeoutException The request timed out (extends N8nCommunicationException)

Retries

When retry_attempts > 0, failed requests are retried with exponential backoff (retry_delay_ms, doubled each attempt). Retries apply to transport errors, timeouts and HTTP 5xx responses. Client errors (4xx) are not retried.

Circuit Breaker

With enable_circuit_breaker: true, the client opens the circuit after circuit_breaker_threshold consecutive failures and rejects further calls (throwing N8nCommunicationException) for circuit_breaker_timeout_seconds before trying again. A successful call resets the breaker.

The circuit breaker is in-memory, so its state lives for the duration of a single PHP process — it is most useful in long-running workers (e.g. Symfony Messenger).

Test Webhooks

During development you can target n8n's test webhook URL (/webhook-test/) instead of the production one (/webhook/) to use unpublished workflows:

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:

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

  1. Start Docker containers:

  2. Install dependencies:

  3. Environment configuration:

  4. Start development server:

Application will be available at http://localhost:8080

Available Taskfile Commands:

Endpoints:

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

PHP Build Version
Package Version
Requires php Version ^8.2
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package freema/n8n-bundle contains the following files

Loading the files please wait ...