A barebones implementation of an atproto PDS in PHP and Slim Framework 4.
To serve the application, clone the repository and run composer install in the application directory.
Then:
- Point your virtual host document root to
phpds'spublic/directory. - Ensure
logs/is web writable.
You can also run the application with docker:
docker build -t phpds .
docker run -p 8080:8080 phpdsTo run the application in development, you can run these commands
composer startOr you can use docker-compose to run the app with docker, so you can run these commands:
docker-compose up -dAfter that, open http://localhost:8080 in your browser.
Run this command in the application directory to run the test suite
composer testTo run PHPCS manually:
composer phpcsTo auto-fix what PHPCBF can fix:
composer phpcbfTo run PHPCS automatically in VS Code, install the recommended PHPCS extension from .vscode/extensions.json and use the workspace settings in .vscode/settings.json.
To run PHPCS before every commit, enable the tracked Git hook with:
git config core.hooksPath .githooksThis repository is automatically synced one-way from GitHub (aitorres/phpds) to tangled.sh (andresitorresm.com/phpds).
This project is licensed under the MIT License. See the LICENSE file for details.