repositories entry to your composer.json before running composer require.
Repository configuration
Add the following to yourcomposer.json before installing:
Install
Requirements
- PHP 8.3 or newer (PHP 8.1 and 8.2 are end-of-life)
- Composer 2 - Composer 1 is not tested and is no longer supported upstream
- Guzzle 7 (
guzzlehttp/guzzle ^7.0) - installed automatically as a dependency - Network access to
<your-slug>.westyx.devat runtime
Guzzle 7 requires
guzzlehttp/promises ^2.0 and guzzlehttp/psr7 ^2.0. Composer resolves these transitively - you do not need to declare them explicitly.Full composer.json example
Verifying installation
composer update westyx/nexus to upgrade.
Verifying connectivity
Before writing any code, confirm your endpoint and API key work with a plaincurl:
configs, secrets, and flags. An HTTP 401 means the key is wrong; HTTP 404 means the slug is wrong.
To watch the live SSE stream:
event:resync arrive within a second. Press Ctrl+C to stop.
Troubleshooting
Could not find package westyx/nexus- verify therepositoriesURL is incomposer.jsonand that your build machine can reachgitlab.com.Your requirements could not be resolved- check that your declaredphpversion constraint allows 8.3+. Runphp -vto confirm the active runtime version.- SSL certificate errors - Guzzle uses the system CA bundle. On Alpine Linux or minimal Docker images, install
ca-certificates(apk add ca-certificates). Class WestyxNexus\NexusClient not found- ensurerequire_once __DIR__ . '/vendor/autoload.php'runs before anyusestatement.
