Download the PHP package gando/partner-symfony without Composer
On this page you can find all versions of the php package gando/partner-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gando/partner-symfony
More information about gando/partner-symfony
Files in gando/partner-symfony
Package partner-symfony
Short Description Symfony bundle for the Gando Partner PHP SDK
License MIT
Informations about the package partner-symfony
gando/partner-symfony
Symfony bundle for the Gando Partner PHP SDK (gando/partner). It registers the API client, optional Connect URL builder, a ready-to-wire webhook controller, and optional #[GandoWebhook] attribute verification.
Requirements
- PHP 8.2+
- Symfony 6.4 LTS or 7.x
gando/partner^0.1.7
Recommended: symfony/http-client, symfony/framework-bundle, symfony/cache (webhook dedup).
Installation
Register the bundle (Symfony Flex does this automatically):
Configuration
| Option | Description |
|---|---|
api_key |
Partner API key (gando_pk_…), required |
base_url |
API base URL (default https://gando.app) |
connect.secret |
Connect signing secret (gando_cs_…) |
connect.partner_slug |
Slug in connect URLs |
connect.base_url |
Dashboard base URL (default https://dashboard.gando.app) |
webhooks.secret |
Webhook signing secret (whsec_… or gando_whsec_…) |
webhooks.tolerance_seconds |
Max webhook age in seconds (default 300) |
webhooks.path |
Route path for bundled webhook controller (default /webhooks/gando) |
webhooks.dedup_ttl_seconds |
Dedup window when cache.app is present (default 86400) |
connect and webhooks sections are optional. Configure webhooks.secret to enable the bundled webhook controller.
Usage
Inject the API client
Partner connect URLs
When connect is configured, inject Gando\Partner\Connect\UrlBuilder:
Webhook endpoint (recommended — 2 lines)
Route (config/routes/gando_partner.yaml):
The bundle also auto-imports config/routes/webhook.php with path %gando_partner.webhooks.path%.
Handler — subscribe to typed events:
| Class | Gando event (partner-webhook.service) |
|---|---|
Gando\Partner\Symfony\Controller\GandoWebhookController |
HTTP ingress — verify, dedup, dispatch, 200 |
Gando\Partner\Symfony\Event\WebhookReceived |
All verified webhooks (always first) |
Gando\Partner\Symfony\Event\RentalOperatorLinked |
rental_operator.linked |
Gando\Partner\Symfony\Event\DepositStatusChanged |
deposit.status_changed |
Gando\Partner\Symfony\Event\DepositActivated |
deposit.activated |
Gando\Partner\Symfony\Event\DepositCaptured |
deposit.captured |
Gando\Partner\Symfony\Event\DepositExpired |
deposit.expired |
Gando\Partner\Symfony\Event\DepositCancelled |
deposit.cancelled |
Full walkthrough: docs/recipes/webhook.md (async processing with Messenger, dedup, endpoint creation).
Webhook attribute (custom controllers)
Mark your own action with #[GandoWebhook] if you do not use the bundled controller. Verification runs on kernel.controller before your code.
Invalid signatures return 400 with an empty body.
HTTP client integration
When Symfony's http_client service exists and symfony/http-client is installed, the bundle wraps it with Symfony\Component\HttpClient\Psr18Client and passes it to Gando\Partner\Api\Client. Optional PSR services (logger, cache.app, event_dispatcher) are wired when present.
Further reading
- Gando Partner PHP SDK — API reference, error handling
- Partner API docs — OpenAPI / Scalar
- Webhook recipe — end-to-end Symfony setup
License
MIT
All versions of partner-symfony with dependencies
gando/partner Version ^0.1.11
symfony/config Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/http-kernel Version ^6.4 || ^7.0