elgibor-solution / laravel-chatwoot
Laravel API bridge to chatwoot engine with matching paths and responses.
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/elgibor-solution/laravel-chatwoot
Requires
- php: ^8.1
- illuminate/http: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0
- phpunit/phpunit: ^10.0|^11.0
README
Laravel API bridge to chatwoot engine with matching paths and responses.
Installation
composer require elgibor-solution/laravel-chatwoot
Configuration
Publish the configuration file:
php artisan vendor:publish --tag="chatwoot-config"
Environment Variables
Add these to your .env:
CHATWOOT_BASE_URL: Your Chatwoot instance URL.CHATWOOT_API_TOKEN: Your API access token.CHATWOOT_PREFIX: API prefix (default:chatwoot).
Database Configuration
If you need to load config from the database, set CHATWOOT_CONFIG_SOURCE=database.
Run the migration first:
php artisan migrate
Usage
Once configured, all requests to /{prefix}/api/v1/* will be bridged to your Chatwoot instance. The payload, method, and headers (including api_access_token) will be handled automatically.
Postman Collection
A Postman collection is included in the postman/ directory for easy testing.