jpcaparas/laravel-n8n-client
Larablocks Analysis
jpcaparas/laravel-n8n-client works with Laravel 10 and 11 (latest release v0.1.0, Jan 7, 2025), all past end of life (the last on Mar 12, 2026): no more fixes, even for security.
Recommendation checks
Use with careUse with care: meets 0 of 4 checks.
- Supports only Laravel 10 and 11, past end of life since Mar 12, 2026
- No release in the last 12 months (last: Jan 7, 2025)
- 71 downloads a month (needs 10,000)
- 14 GitHub stars (needs 100)
State
Quiet- Last stable release: Jan 7, 2025.
- No releases in the last 12 months.
- First released: Jan 7, 2025.
- Monthly downloads: 71.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.
| Install | |
|---|---|
composer require jpcaparas/laravel-n8n-client |
|
| Latest Version: | v0.1.0 |
| PHP: | ^8.1 |
| Laravel: | 10 · 11 |
| License: | MIT |
| Last Updated: | Jan 7, 2025 |
| Links: | GitHub · Packagist |
jpcaparas/laravel-n8n-client
A Laravel library that interfaces with the self-hosted n8n REST API.
Installation
You can install the package via Composer:
composer require jpcaparas/laravel-n8n-client
Publish the configuration file:
php artisan vendor:publish --provider="JPCaparas\N8N\N8NServiceProvider" --tag="config"
Set these credentials inside your .env file:
N8N_BASE_URI=http://[your_n8n_instance]:[your_n8n_port]
N8N_API_TOKEN=[your_n8n_api_token]
Local testing
If you want to interact with the package locally, you can use the Laravel skeleton provided by orchestra/testbench and its associated Tinker REPL:
- Publish the configuration file to the Laravel skeleton.
composer test:publish
- Modify
.envAPI credentials on the skeleton as needed:
N8N_BASE_URI=http://localhost:5678
N8N_API_TOKEN=[your_n8n_api_token]
- Enter the Tinker REPL:
composer test:tinker
- Create an instance of the N8N client:
$n8n = app(\JPCaparas\N8N\N8NClient::class);
- Make API requests using the N8N client:
$response = $n8n->get('valid-endpoint');
$response = $n8n->post('valid-endpoint', ['data' => 'value']);
There are also convenience methods for the most common API endpoints:
$response = $n8n->getWorkflows();
$response = $n8n->getWorkflow('workflow-id');
$response = $n8n->createWorkflow(['name' => 'New Workflow']);
$response = $n8n->updateWorkflow('workflow-id', ['name' => 'Updated Workflow']);
Tests
composer test
License
MIT
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.1.0 | ^8.1 | ^10.0 || | MIT |