Skip to main content
Official PHP SDK for Westyx Nexus - the centralised secrets, feature flags, and config service.

Highlights

  • PHP 8.3+ - pure PHP, no framework required; tested on 8.3, 8.4 and 8.5
  • PSR-18 / PSR-17 - uses the HTTP client your project already has; nothing forced on you
  • Laravel service provider - auto-discovered, with the container’s HTTP client and logger wired in
  • TTL cache with ETag/304 - reads inside the TTL never touch the network; a failed refresh keeps serving the last snapshot
  • SSE live updates via connectStream() for long-running CLI daemons and queue workers
  • Typed exceptions - NexusException and its subclasses; an API error carries its status and the server’s error code
  • Workload Identity Federation - Kubernetes, AWS IRSA, GCP, Azure, the developer session, and AWS IAM for ECS, Fargate, Lambda and EC2
  • Write API (setSecret, deleteSecret, deleteSecretVersion) for secret keys
  • A/B testing (evaluateAb) for the AB Testing add-on, and an OpenFeature provider with per-user targeting
  • File-type secrets (getSecretFilePath) - written to a private per-client directory, files created 0600
  • PSR-3 logging - structured context, a startup summary naming what the first sync delivered, and never a secret value

Installation

The package is on Packagist, so nothing else is needed; to install it from the Westyx GitLab Composer registry instead, see Installation for the repository setup. Latest release: v0.19.1 (2026-11-19) - see the version history.

Quick start

Pages