911ba84220 | ||
---|---|---|
.htaccess | ||
CRAPL-LICENSE.txt | ||
README.md | ||
icon.png | ||
index.php |
README.md
ActivityPub Server in a Single PHP File
This is a single PHP file - and an .htaccess file
- which acts as an extremely basic ActivityPub server.
Getting started
This is designed to be a lightweight educational tool to show you the basics of how ActivityPub works.
There are no tests, no checks, no security features, no header verifications, no containers, no gods, no masters.
Edit the .php
file to add a username, password, and keypair.
Upload the .php
and .htaccess
file to the root directory of your domain. For example test.example.com/
. It will not work in a subdirectory.
Optionally, upload an icon.png
as well to make the account look nice.
How this works
- The
.htaccess
file transforms requests fromexample.com/whatever
toexample.com/index.php?path=whatever
. - The
index.php
file performs a specific action depending on the path requested. - Log files are saved as .txt in the root directory.
- Post files are saved as .json in the
/posts
directory.