Getting Started
The orchestration package provides a robust, standardized architecture for integrating third-party services into your Laravel application. By decoupling your business logic from external dependencies, Orchestration allows you to seamlessly swap out providers, route traffic, and mock APIs locally without touching your core application code.
Prerequisites
Installation
Add the package to your application using Composer:
composer require payavel/orchestrationSetup Wizard
Orchestration provides a helpful setup wizard to generate your first service:
php artisan orchestrate:serviceThe wizard will interactively guide you to:
- Name the service (e.g., "Checkout").
- Choose a configuration driver (
configordatabase). - Set up the providers (e.g., "Stripe", "Adyen").
- Link accounts to those providers.
Once completed, the command generates your baseline contracts, provider gateways, a fake gateway for testing, and the necessary configuration files.
Configuration
With the baseline setup complete, your next priority is configuring your service appropriately. Orchestration offers a highly flexible configuration system supporting multiple drivers, test modes, and granular provider/account setups.
Check out the Configuration Guide to learn how to manage your global and service-specific settings, accounts, and testing gateways.