Development
PHP library
composer install
composer test
composer auditThe default test suite does not depend on a live Ethereum provider. To include the mainnet contract-wallet integration fixtures:
SIWE_RPC_URL=https://your-mainnet-rpc.example ./run-tests.shCI tests PHP 8.3, 8.4 and 8.5.
Documentation
The site uses VitePress with Markdown source in docs/. Use Node.js 22 or later and npm:
npm ci
npm run docs:devBuild and preview the static output:
npm run docs:build
npm run docs:previewThe build regenerates llms.txt and llms-full.txt from the Markdown guides and agent prompts. Vite is pinned through an override to a patched 6.4 release while the site uses stable VitePress 1.6.4.
The production base path is /siwe-php/. GitHub Actions builds documentation on pull requests and deploys changes pushed to main to GitHub Pages. The deployment can also be triggered manually from the Actions tab.
Credits and licenses
A PHP port of SIWE. See login.xyz.
Consult the repository's LICENSE, MIT license and Apache license for licensing details.