The SDK ships a Laravel integration. The service provider is auto-discovered, so installing
the package is enough.
Publish the config file if you need to change the defaults:
Use it
The client is bound as a singleton, so inject it:
Or use the facade:
Switching environments
Point ORCHESTRATE_SECRET_KEY at a sk_sandbox_ key in your local and staging
environments, and a sk_live_ key in production. Nothing else changes — see
Authentication.
Receiving webhooks
Register a route that is exempt from CSRF, verify the signature against the raw body,
then hand the work to a queued job so the endpoint answers fast. See
Webhooks for the signature check and the event list.
Private network routing
When your Laravel application can reach the API through a private network, resolve the public
API hostname to the private endpoint from environment configuration:
The SDK connects to that IP while keeping https://api.orqex.com/v1 as the request URL. The
public hostname, HTTP Host header and TLS SNI are preserved.
If the endpoint certificate is issued by a private certificate authority, also provide its CA
bundle:
The file must be readable by PHP. TLS verification stays enabled; do not replace the API hostname
with an IP address or disable certificate verification. Custom hostname resolution requires the
PHP cURL extension.
192.0.2.10 is a documentation-only address. Set these values through your deployment secrets
or environment configuration and do not commit private addresses or certificates.