PHP 8.3 or newer. The SDK is tested against 8.3, 8.4 and 8.5 on every commit.
Composer 2 - Composer 1 is not tested and is no longer supported upstream
A PSR-18 HTTP client and PSR-17 factories (see below)
Network access to <your-slug>.westyx.dev at runtime
HTTP client
The SDK depends on the PSR interfaces rather than on a concrete client, so it uses whichever HTTP stack your project already has - and does not install a second one alongside it. Most projects already have one. If yours does not, either of these works:
composer require guzzlehttp/guzzle
composer require symfony/http-client nyholm/psr7
php-http/discovery locates the installed implementation automatically. You can also pass your own client and factories to NexusClient::create() - see HTTP client.
What gets installed
Installing westyx/nexus brings 6 packages, about 1 MB:
Package
Purpose
psr/http-client
PSR-18 client interface
psr/http-factory
PSR-17 request/stream factory interfaces
psr/http-message
PSR-7 message interfaces
psr/log
PSR-3 logger interface
php-http/discovery
Finds the PSR-18/PSR-17 implementation your project has
Optional
Requirement
Needed for
ext-curl
connectStream() live updates only. Everything else works without it.
aws/aws-sdk-php ^3.386
The aws_iam WIF provider only
illuminate/support ^11.3 || ^12.0 || ^13.0
The Laravel service provider, which a Laravel application already provides. See Laravel.
A valid response returns a JSON snapshot with your 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:
You should see event:resync arrive within a second. Press Ctrl+C to stop.
Troubleshooting
The repositories entry must be present before running composer require. If you add it after, Composer will not retry the lookup - remove the cached resolution from composer.lock and run composer install again.
Could not find package westyx/nexus - verify the repositories URL is in composer.json and that your build machine can reach gitlab.com.
Your requirements could not be resolved - check that your declared php version constraint allows 8.3+. Run php -v to confirm the active runtime version.
SSL certificate errors - PHP HTTP clients use the system CA bundle. On Alpine Linux or minimal Docker images, install ca-certificates (apk add ca-certificates).
Class WestyxNexus\NexusClient not found - ensure require_once __DIR__ . '/vendor/autoload.php' runs before any use statement.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Westyx Nexus","colors":{"primary":"#a855f7","light":"#a855f7","dark":"#a855f7"},"logo":{"light":"https://mintcdn.com/westyx/SZvVVOurEPriggFG/nexus-logo.webp?fit=max\u0026auto=format\u0026n=SZvVVOurEPriggFG\u0026q=85\u0026s=6ffbf78ce14ec5ee73fe3b569f8953a9","dark":"https://mintcdn.com/westyx/SZvVVOurEPriggFG/nexus-logo.webp?fit=max\u0026auto=format\u0026n=SZvVVOurEPriggFG\u0026q=85\u0026s=6ffbf78ce14ec5ee73fe3b569f8953a9"},"favicon":"https://mintcdn.com/westyx/SZvVVOurEPriggFG/nexus-logo.webp?fit=max\u0026auto=format\u0026n=SZvVVOurEPriggFG\u0026q=85\u0026s=6ffbf78ce14ec5ee73fe3b569f8953a9","appearance":{"default":"dark"},"navbar":{"links":[],"primary":{"type":"button","label":"Go to Console","href":"https://app.westyx.dev"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/westyx"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"westyx","hasAudioNarration":false,"actualSubdomain":"westyx","customDomains":["docs.westyx.dev"],"gitSource":{"type":"gitlab","owner":"westyx/nexus","repo":"public-documentation","projectId":82540509,"deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aff1d0c144212df22539fef","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"SDKs","count":153},{"language":"default","tag":"Backend SDKs","count":115},{"language":"default","tag":"Browser SDKs","count":33},{"language":"default","tag":".NET","count":21},{"language":"default","tag":"Reference","count":15},{"language":"default","tag":"Platform","count":15},{"language":"default","tag":"Node.js","count":15},{"language":"default","tag":"Python","count":15},{"language":"default","tag":"Go","count":13},{"language":"default","tag":"Kotlin","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"sdks/php/installation","slug":"/sdks/php/installation","pageMetadata":{"title":"PHP SDK - Installation","description":"Install the Westyx Nexus PHP SDK via Composer, including repository configuration.","href":"/sdks/php/installation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Install the Westyx Nexus PHP SDK via Composer, including repository configuration.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The PHP SDK is published to `,_jsx(_components.a,{href:`https://packagist.org/packages/westyx/nexus`,children:`Packagist`}),` and to the Westyx GitLab Composer registry. Installing from Packagist needs no repository configuration.`]}),`\n`,_jsx(Heading,{level:`2`,id:`install`,children:`Install`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`composer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` westyx/nexus`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Pin a specific version (recommended for production services):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`composer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` westyx/nexus:^0.19.1`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`installing-from-the-gitlab-composer-registry`,children:`Installing from the GitLab Composer registry`}),`\n`,_jsxs(_components.p,{children:[`To resolve the package from the Westyx registry instead of Packagist, add it to your `,_jsx(_components.code,{children:`composer.json`}),` before installing:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"repositories\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"composer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://gitlab.com/api/v4/projects/82742835/packages/composer/packages.json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Add the autoload import to your bootstrap:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`require_once`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` __DIR__`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '/vendor/autoload.php'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` WestyxNexus\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`NexusClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` WestyxNexus\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`NexusConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`requirements`,children:`Requirements`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PHP 8.3`}),` or newer. The SDK is tested against `,_jsx(_components.strong,{children:`8.3, 8.4 and 8.5`}),` on every commit.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Composer 2`}),` - Composer 1 is not tested and is no longer supported upstream`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.strong,{children:`PSR-18 HTTP client`}),` and `,_jsx(_components.strong,{children:`PSR-17 factories`}),` (see below)`]}),`\n`,_jsxs(_components.li,{children:[`Network access to `,_jsx(_components.code,{children:`\u003cyour-slug>.westyx.dev`}),` at runtime`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`http-client`,children:`HTTP client`}),`\n`,_jsx(_components.p,{children:`The SDK depends on the PSR interfaces rather than on a concrete client, so it uses whichever HTTP stack your project already has - and does not install a second one alongside it. Most projects already have one. If yours does not, either of these works:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`composer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` guzzlehttp/guzzle`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`composer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` symfony/http-client`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` nyholm/psr7`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`php-http/discovery`}),` locates the installed implementation automatically. You can also pass your own client and factories to `,_jsx(_components.code,{children:`NexusClient::create()`}),` - see `,_jsx(_components.a,{href:`/sdks/php/http-client`,children:`HTTP client`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`what-gets-installed`,children:`What gets installed`}),`\n`,_jsxs(_components.p,{children:[`Installing `,_jsx(_components.code,{children:`westyx/nexus`}),` brings 6 packages, about 1 MB:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Package`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`psr/http-client`})}),_jsx(_components.td,{children:`PSR-18 client interface`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`psr/http-factory`})}),_jsx(_components.td,{children:`PSR-17 request/stream factory interfaces`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`psr/http-message`})}),_jsx(_components.td,{children:`PSR-7 message interfaces`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`psr/log`})}),_jsx(_components.td,{children:`PSR-3 logger interface`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`php-http/discovery`})}),_jsx(_components.td,{children:`Finds the PSR-18/PSR-17 implementation your project has`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`optional`,children:`Optional`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Requirement`}),_jsx(_components.th,{children:`Needed for`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ext-curl`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`connectStream()`}),` live updates only. Everything else works without it.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`aws/aws-sdk-php`}),` ^3.386`]}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`aws_iam`}),` WIF provider only`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`illuminate/support`}),` ^11.3 || ^12.0 || ^13.0`]}),_jsxs(_components.td,{children:[`The Laravel service provider, which a Laravel application already provides. See `,_jsx(_components.a,{href:`/sdks/php/laravel`,children:`Laravel`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`open-feature/sdk`}),` ^2.1`]}),_jsxs(_components.td,{children:[`The OpenFeature provider only. See `,_jsx(_components.a,{href:`/sdks/php/openfeature`,children:`OpenFeature`}),`.`]})]})]})]}),`\n`,_jsxs(Heading,{level:`2`,id:`full-composer-json-example`,children:[`Full `,_jsx(_components.code,{children:`composer.json`}),` example`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"require\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"php\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\">=8.3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"westyx/nexus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"^0.19.1\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"repositories\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"composer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://gitlab.com/api/v4/projects/82742835/packages/composer/packages.json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`verifying-installation`,children:`Verifying installation`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`composer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` show`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` westyx/nexus`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Should print a block containing:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`name : westyx/nexus`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`versions : * 0.19.1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`If you see an older version, run `,_jsx(_components.code,{children:`composer update westyx/nexus`}),` to upgrade.`]}),`\n`,_jsx(Heading,{level:`2`,id:`verifying-connectivity`,children:`Verifying connectivity`}),`\n`,_jsxs(_components.p,{children:[`Before writing any code, confirm your endpoint and API key work with a plain `,_jsx(_components.code,{children:`curl`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Nexus-API-Key: wxs_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://your-service.westyx.dev/v1/sync`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`A valid response returns a JSON snapshot with your `,_jsx(_components.code,{children:`configs`}),`, `,_jsx(_components.code,{children:`secrets`}),`, and `,_jsx(_components.code,{children:`flags`}),`. An `,_jsx(_components.code,{children:`HTTP 401`}),` means the key is wrong; `,_jsx(_components.code,{children:`HTTP 404`}),` means the slug is wrong.`]}),`\n`,_jsx(_components.p,{children:`To watch the live SSE stream:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -N`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Nexus-API-Key: wxs_...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Accept: text/event-stream\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://your-service.westyx.dev/v1/stream`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`You should see `,_jsx(_components.code,{children:`event:resync`}),` arrive within a second. Press `,_jsx(_components.code,{children:`Ctrl+C`}),` to stop.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`repositories`}),` entry must be present `,_jsx(_components.strong,{children:`before`}),` running `,_jsx(_components.code,{children:`composer require`}),`. If you add it after, Composer will not retry the lookup - remove the cached resolution from `,_jsx(_components.code,{children:`composer.lock`}),` and run `,_jsx(_components.code,{children:`composer install`}),` again.`]})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`Could not find package westyx/nexus`})}),` - verify the `,_jsx(_components.code,{children:`repositories`}),` URL is in `,_jsx(_components.code,{children:`composer.json`}),` and that your build machine can reach `,_jsx(_components.code,{children:`gitlab.com`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`Your requirements could not be resolved`})}),` - check that your declared `,_jsx(_components.code,{children:`php`}),` version constraint allows 8.3+. Run `,_jsx(_components.code,{children:`php -v`}),` to confirm the active runtime version.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`SSL certificate errors`}),` - PHP HTTP clients use the system CA bundle. On Alpine Linux or minimal Docker images, install `,_jsx(_components.code,{children:`ca-certificates`}),` (`,_jsx(_components.code,{children:`apk add ca-certificates`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`Class WestyxNexus\\\\NexusClient not found`})}),` - ensure `,_jsx(_components.code,{children:`require_once __DIR__ . '/vendor/autoload.php'`}),` runs before any `,_jsx(_components.code,{children:`use`}),` statement.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"PHP SDK - Installation","description":"Install the Westyx Nexus PHP SDK via Composer, including repository configuration.","href":"/sdks/php/installation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Install","slug":"install","depth":2,"children":[]},{"title":"Installing from the GitLab Composer registry","slug":"installing-from-the-gitlab-composer-registry","depth":2,"children":[]},{"title":"Requirements","slug":"requirements","depth":2,"children":[]},{"title":"HTTP client","slug":"http-client","depth":2,"children":[{"title":"What gets installed","slug":"what-gets-installed","depth":3,"children":[]},{"title":"Optional","slug":"optional","depth":3,"children":[]}]},{"title":"Full composer.json example","slug":"full-composer-json-example","depth":2,"children":[]},{"title":"Verifying installation","slug":"verifying-installation","depth":2,"children":[]},{"title":"Verifying connectivity","slug":"verifying-connectivity","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"westyx","siteName":"Westyx Nexus","title":"PHP SDK - Installation - Westyx Nexus","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T16:00:27.104Z","originalFileLocation":"sdks/php/installation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Install the Westyx Nexus PHP SDK via Composer, including repository configuration.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Westyx Nexus\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"PHP SDK - Installation - Westyx Nexus\">\u003cmeta data-mint-head property=\"og:description\" content=\"Install the Westyx Nexus PHP SDK via Composer, including repository configuration.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Westyx Nexus\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.westyx.dev/sdks/php/installation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://westyx.mintlify.site/_mintlify/api/og/v2?division=PHP\u0026amp;title=PHP+SDK+-+Installation\u0026amp;description=Install+the+Westyx+Nexus+PHP+SDK+via+Composer%2C+including+repository+configuration.\u0026amp;theme=2bda145bf35d10a16e63e692\u0026amp;signature=8178a832a1da0574efa1c796ed321a742a833bdd237677ed7a250c87f90f9f97\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"PHP SDK - Installation - Westyx Nexus\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Install the Westyx Nexus PHP SDK via Composer, including repository configuration.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://westyx.mintlify.site/_mintlify/api/og/v2?division=PHP\u0026amp;title=PHP+SDK+-+Installation\u0026amp;description=Install+the+Westyx+Nexus+PHP+SDK+via+Composer%2C+including+repository+configuration.\u0026amp;theme=2bda145bf35d10a16e63e692\u0026amp;signature=8178a832a1da0574efa1c796ed321a742a833bdd237677ed7a250c87f90f9f97\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Westyx Nexus\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#a855f7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.westyx.dev/sdks/php/installation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdks/php/installation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.westyx.dev/#organization\",\"name\":\"Westyx Nexus\",\"url\":\"https://docs.westyx.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/westyx/SZvVVOurEPriggFG/nexus-logo.webp?fit=max\u0026auto=format\u0026n=SZvVVOurEPriggFG\u0026q=85\u0026s=6ffbf78ce14ec5ee73fe3b569f8953a9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.westyx.dev#website\",\"name\":\"Westyx Nexus\",\"url\":\"https://docs.westyx.dev\",\"publisher\":{\"@id\":\"https://docs.westyx.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.westyx.dev/sdks/php/installation#webpage\",\"url\":\"https://docs.westyx.dev/sdks/php/installation\",\"name\":\"PHP SDK - Installation\",\"description\":\"Install the Westyx Nexus PHP SDK via Composer, including repository configuration.\",\"dateModified\":\"2026-11-19T16:00:27.104Z\",\"isPartOf\":{\"@id\":\"https://docs.westyx.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.westyx.dev/sdks/php/installation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.westyx.dev/sdks/php/installation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Backend SDKs\",\"item\":\"https://docs.westyx.dev/sdks/go\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP\",\"item\":\"https://docs.westyx.dev/sdks/php\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP SDK - Installation\",\"item\":\"https://docs.westyx.dev/sdks/php/installation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.westyx.dev/sdks/php/installation#article\",\"headline\":\"PHP SDK - Installation\",\"name\":\"PHP SDK - Installation\",\"description\":\"Install the Westyx Nexus PHP SDK via Composer, including repository configuration.\",\"url\":\"https://docs.westyx.dev/sdks/php/installation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.westyx.dev/sdks/php/installation#webpage\"},\"dateModified\":\"2026-11-19T16:00:27.104Z\",\"publisher\":{\"@id\":\"https://docs.westyx.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.westyx.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Westyx Nexus\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Westyx Nexus\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdks/php/installation.md","siteName":"Westyx Nexus","nav":{"global":null,"tabs":[{"tab":"Platform","pages":[{"title":"Platform","href":""}]},{"tab":"Features","pages":[{"title":"Features","href":"/features/secrets"}]},{"tab":"SDKs","groups":[{"group":"Overview","pages":[{"title":"SDK Overview","icon":"grid-2","href":"/sdks/overview"}]},{"group":"Backend SDKs","pages":[{"group":"Go","icon":"golang","pages":[{"title":"Go SDK","href":"/sdks/go/index"},{"title":"Go SDK - Installation","href":"/sdks/go/installation"},{"title":"Go SDK - Configuration","href":"/sdks/go/configuration"},{"title":"Go SDK - API Reference","href":"/sdks/go/api-reference"},{"title":"Go SDK - Config values","href":"/sdks/go/config-values"},{"title":"Go SDK - Logging","href":"/sdks/go/logging"},{"title":"Go SDK - Error Handling","href":"/sdks/go/error-handling"},{"title":"Go SDK - SSE Live Updates","href":"/sdks/go/sse-live-updates"},{"title":"Go SDK - Stream Observer","href":"/sdks/go/stream-observer"},{"title":"Go SDK - Workload Identity Federation","href":"/sdks/go/workload-identity"},{"title":"Go SDK - Caching Behaviour","href":"/sdks/go/caching-behaviour"},{"title":"Go SDK - OpenFeature integration","href":"/sdks/go/openfeature"},{"title":"Go SDK - Version history","href":"/sdks/go/version-history"}]},{"group":"Node.js","icon":"node-js","pages":[{"title":"Node.js SDK","href":"/sdks/nodejs/index"},{"title":"Node.js SDK - Installation","href":"/sdks/nodejs/installation"},{"title":"Node.js SDK - NestJS","href":"/sdks/nodejs/nestjs"},{"title":"Node.js SDK - Configuration","href":"/sdks/nodejs/configuration"},{"title":"Node.js SDK - API Reference","href":"/sdks/nodejs/api-reference"},{"title":"Node.js SDK - Config values","href":"/sdks/nodejs/config-values"},{"title":"Node.js SDK - Logging","href":"/sdks/nodejs/logging"},{"title":"Node.js SDK - Error Handling","href":"/sdks/nodejs/error-handling"},{"title":"Node.js SDK - File-type secret security","href":"/sdks/nodejs/file-secret-security"},{"title":"Node.js SDK - SSE Live Updates","href":"/sdks/nodejs/sse-live-updates"},{"title":"Node.js SDK - Stream Observer","href":"/sdks/nodejs/stream-observer"},{"title":"Node.js SDK - Workload Identity Federation","href":"/sdks/nodejs/workload-identity"},{"title":"Node.js SDK - Caching Behaviour","href":"/sdks/nodejs/caching-behaviour"},{"title":"Node.js SDK - OpenFeature","href":"/sdks/nodejs/openfeature"},{"title":"Node.js SDK - Version history","href":"/sdks/nodejs/version-history"}]},{"group":"Python","icon":"python","pages":[{"title":"Python SDK","href":"/sdks/python/index"},{"title":"Python SDK - Installation","href":"/sdks/python/installation"},{"title":"Python SDK - Configuration","href":"/sdks/python/configuration"},{"title":"Python SDK - Framework adapters","href":"/sdks/python/framework-adapters"},{"title":"Python SDK - Logging","href":"/sdks/python/logging"},{"title":"Python SDK - API Reference","href":"/sdks/python/api-reference"},{"title":"Python SDK - Error Handling","href":"/sdks/python/error-handling"},{"title":"Python SDK - SSE Live Updates","href":"/sdks/python/sse-live-updates"},{"title":"Python SDK - Stream Observer","href":"/sdks/python/stream-observer"},{"title":"Python SDK - Workload Identity Federation","href":"/sdks/python/workload-identity"},{"title":"Python SDK - Caching Behaviour","href":"/sdks/python/caching-behaviour"},{"title":"Python SDK - Type checking","href":"/sdks/python/type-checking"},{"title":"Python SDK - File-type secret security","href":"/sdks/python/file-secret-security"},{"title":"Python SDK - OpenFeature provider","href":"/sdks/python/openfeature-provider"},{"title":"Python SDK - Version history","href":"/sdks/python/version-history"}]},{"group":".NET","icon":"microsoft","pages":[{"group":"Getting started","pages":[{"title":".NET SDK","href":"/sdks/dotnet/index"},{"title":".NET SDK - Getting started with ASP.NET Core","href":"/sdks/dotnet/getting-started"},{"title":".NET SDK - Installation","href":"/sdks/dotnet/installation"}]},{"group":"Integration","pages":[{"title":".NET SDK - Wiring the packages together","href":"/sdks/dotnet/package-wiring"},{"title":".NET SDK - Dependency injection","href":"/sdks/dotnet/dependency-injection"},{"title":".NET SDK - ASP.NET Core IConfiguration","href":"/sdks/dotnet/aspnetcore-configuration"},{"title":".NET SDK - Secrets binding","href":"/sdks/dotnet/secrets-binding"},{"title":".NET SDK - Feature management","href":"/sdks/dotnet/feature-management"},{"title":"OpenFeature integration","href":"/sdks/dotnet/openfeature"}]},{"group":"Reference","pages":[{"title":".NET SDK - Configuration","href":"/sdks/dotnet/configuration"},{"title":".NET SDK - API Reference","href":"/sdks/dotnet/api-reference"},{"title":".NET SDK - Error Handling","href":"/sdks/dotnet/error-handling"},{"title":".NET SDK - Caching Behaviour","href":"/sdks/dotnet/caching-behaviour"},{"title":".NET SDK - SSE Live Updates","href":"/sdks/dotnet/sse-live-updates"},{"title":".NET SDK - Stream Observer","href":"/sdks/dotnet/stream-observer"},{"title":".NET SDK - Workload Identity Federation","href":"/sdks/dotnet/workload-identity"}]},{"group":"Operations","pages":[{"title":".NET SDK - Logging","href":"/sdks/dotnet/logging"},{"title":".NET SDK - OpenTelemetry","href":"/sdks/dotnet/opentelemetry"},{"title":".NET SDK - Trimming and Native AOT","href":"/sdks/dotnet/trimming-and-aot"}]},{"group":"Background","pages":[{"title":".NET SDK - Design decisions and deviations","href":"/sdks/dotnet/design-decisions"},{"title":".NET SDK - Version history","href":"/sdks/dotnet/version-history"}]}]},{"group":"Spring Boot","icon":"java","pages":[{"title":"Spring Boot SDK","href":"/sdks/spring-boot/index"},{"title":"Spring Boot SDK - Installation","href":"/sdks/spring-boot/installation"},{"title":"Spring Boot SDK - Configuration","href":"/sdks/spring-boot/configuration"},{"title":"Spring Boot SDK - JSON values","href":"/sdks/spring-boot/json-values"},{"title":"Spring Boot SDK - API Reference","href":"/sdks/spring-boot/api-reference"},{"title":"Spring Boot SDK - Error Handling","href":"/sdks/spring-boot/error-handling"},{"title":"Spring Boot SDK - Logging","href":"/sdks/spring-boot/logging"},{"title":"Spring Boot SDK - SSE Live Updates","href":"/sdks/spring-boot/sse-live-updates"},{"title":"Spring Boot SDK - Stream Observer","href":"/sdks/spring-boot/stream-observer"},{"title":"Spring Boot SDK - Workload Identity Federation","href":"/sdks/spring-boot/workload-identity"},{"title":"Spring Boot SDK - Caching Behaviour","href":"/sdks/spring-boot/caching-behaviour"},{"title":"OpenFeature integration","href":"/sdks/spring-boot/openfeature"},{"title":"Spring Boot SDK - Version history","href":"/sdks/spring-boot/version-history"}]},{"group":"Kotlin","icon":"k","pages":[{"title":"Kotlin SDK","href":"/sdks/kotlin/index"},{"title":"Kotlin SDK - Installation","href":"/sdks/kotlin/installation"},{"title":"Kotlin SDK - Configuration","href":"/sdks/kotlin/configuration"},{"title":"Kotlin SDK - API Reference","href":"/sdks/kotlin/api-reference"},{"title":"Kotlin SDK - Logging","href":"/sdks/kotlin/logging"},{"title":"Kotlin SDK - Error Handling","href":"/sdks/kotlin/error-handling"},{"title":"Kotlin SDK - SSE Live Updates","href":"/sdks/kotlin/sse-live-updates"},{"title":"Kotlin SDK - Stream Observer","href":"/sdks/kotlin/stream-observer"},{"title":"Kotlin SDK - Workload Identity Federation","href":"/sdks/kotlin/workload-identity"},{"title":"Kotlin SDK - Caching Behaviour","href":"/sdks/kotlin/caching-behaviour"},{"title":"Kotlin SDK - Ktor Plugin","href":"/sdks/kotlin/ktor-plugin"},{"title":"OpenFeature integration","href":"/sdks/kotlin/openfeature"},{"title":"Kotlin SDK - Version history","href":"/sdks/kotlin/version-history"}]},{"group":"PHP","icon":"php","pages":[{"title":"PHP SDK","description":"Official PHP SDK for Westyx Nexus - PHP 8.3+, PSR-18/PSR-17, TTL cache, SSE live updates, Laravel service provider.","href":"/sdks/php/index"},{"title":"PHP SDK - Installation","href":"/sdks/php/installation"},{"title":"PHP SDK - Configuration","description":"NexusConfig field reference, API key types, TTL guidance, and WifConfig overview for the PHP SDK.","href":"/sdks/php/configuration"},{"title":"PHP SDK - API Reference","href":"/sdks/php/api-reference"},{"title":"PHP SDK - HTTP Client","href":"/sdks/php/http-client"},{"title":"PHP SDK - Error Handling","href":"/sdks/php/error-handling"},{"title":"PHP SDK - SSE Live Updates","href":"/sdks/php/sse-live-updates"},{"title":"PHP SDK - Caching Behaviour","href":"/sdks/php/caching-behaviour"},{"title":"PHP SDK - Workload Identity Federation","href":"/sdks/php/workload-identity"},{"title":"PHP SDK - Custom Logging","href":"/sdks/php/custom-logging"},{"title":"PHP SDK - Laravel","href":"/sdks/php/laravel"},{"title":"PHP SDK - OpenFeature Provider","href":"/sdks/php/openfeature"},{"title":"PHP SDK - Version history","href":"/sdks/php/version-history"}]},{"group":"Rust","icon":"rust","pages":[{"title":"Rust SDK","href":"/sdks/rust/index"},{"title":"Rust SDK - Installation","href":"/sdks/rust/installation"},{"title":"Rust SDK - Configuration","href":"/sdks/rust/configuration"},{"title":"Rust SDK - API reference","href":"/sdks/rust/api-reference"},{"title":"Rust SDK - Logging","href":"/sdks/rust/logging"},{"title":"Rust SDK - Error handling","href":"/sdks/rust/error-handling"},{"title":"Rust SDK - SSE live updates","href":"/sdks/rust/sse-live-updates"},{"title":"Rust SDK - Caching behaviour","href":"/sdks/rust/caching-behaviour"},{"title":"Rust SDK - Workload identity","href":"/sdks/rust/workload-identity"},{"title":"Rust SDK - OpenFeature","href":"/sdks/rust/openfeature"},{"title":"Rust SDK - Async migration","href":"/sdks/rust/async-migration"},{"title":"Rust SDK - Version history","href":"/sdks/rust/version-history"}]}]},{"group":"Browser SDKs","pages":[{"group":"Angular","icon":"angular","pages":[{"title":"Angular SDK","href":"/sdks/angular/index"},{"title":"Angular SDK - Installation","href":"/sdks/angular/installation"},{"title":"Angular SDK - Configuration","href":"/sdks/angular/configuration"},{"title":"Angular SDK - Caching behaviour","href":"/sdks/angular/caching-behaviour"},{"title":"Angular SDK - Custom logging","href":"/sdks/angular/custom-logging"},{"title":"Angular SDK - API reference","href":"/sdks/angular/api-reference"},{"title":"Angular SDK - Error handling","href":"/sdks/angular/error-handling"},{"title":"Angular SDK - Live updates","href":"/sdks/angular/sse-live-updates"},{"title":"Angular SDK - Stream observer","href":"/sdks/angular/stream-observer"},{"title":"Angular SDK - OpenFeature","href":"/sdks/angular/openfeature"}]},{"group":"React","icon":"react","pages":[{"group":"Getting started","pages":[{"title":"React SDK","href":"/sdks/react/index"},{"title":"React SDK - Getting started with Next.js","href":"/sdks/react/getting-started"},{"title":"React SDK - Installation","href":"/sdks/react/installation"}]},{"group":"Integration","pages":[{"title":"React SDK - Configuration","href":"/sdks/react/configuration"},{"title":"React SDK - OpenFeature","href":"/sdks/react/openfeature"}]},{"group":"Reference","pages":[{"title":"React SDK - API reference","href":"/sdks/react/api-reference"},{"title":"React SDK - Error handling","href":"/sdks/react/error-handling"},{"title":"React SDK - Caching behaviour","href":"/sdks/react/caching-behaviour"},{"title":"React SDK - Live updates","href":"/sdks/react/sse-live-updates"},{"title":"React SDK - Stream observer","href":"/sdks/react/stream-observer"}]},{"group":"Operations","pages":[{"title":"React SDK - Custom logging","href":"/sdks/react/custom-logging"}]},{"group":"Background","pages":[{"title":"React SDK - Design decisions","href":"/sdks/react/design-decisions"},{"title":"React SDK - Version history","href":"/sdks/react/version-history"}]}]},{"group":"Vue","icon":"vuejs","pages":[{"title":"Vue SDK","href":"/sdks/vue/index"},{"title":"Vue SDK - Installation","href":"/sdks/vue/installation"},{"title":"Vue SDK - Configuration","href":"/sdks/vue/configuration"},{"title":"Vue SDK - Caching behaviour","href":"/sdks/vue/caching-behaviour"},{"title":"Vue SDK - Custom logging","href":"/sdks/vue/custom-logging"},{"title":"Vue SDK - API reference","href":"/sdks/vue/api-reference"},{"title":"Vue SDK - Error handling","href":"/sdks/vue/error-handling"},{"title":"Vue SDK - Live updates","href":"/sdks/vue/sse-live-updates"},{"title":"Vue SDK - Stream observer","href":"/sdks/vue/stream-observer"},{"title":"Vue SDK - OpenFeature","href":"/sdks/vue/openfeature"}]}]},{"group":"OpenFeature Providers","pages":[{"group":"OpenFeature Web","icon":"flag","pages":[{"title":"OpenFeature Web Provider","href":"/sdks/openfeature-web-provider/index"},{"title":"OpenFeature Web Provider - Installation","href":"/sdks/openfeature-web-provider/installation"},{"title":"OpenFeature Web Provider - Usage","href":"/sdks/openfeature-web-provider/usage"},{"title":"OpenFeature Web Provider - Targeting","href":"/sdks/openfeature-web-provider/targeting"}]}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli"}]}]},"basePath":"","title":"PHP SDK - Installation - Westyx Nexus","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}