A single PHP file which acts as a basic ActivityPub server.
Go to file
Terence Eden 911ba84220 Initial upload 2024-02-12 21:21:05 +00:00
.htaccess Initial upload 2024-02-12 21:21:05 +00:00
CRAPL-LICENSE.txt Initial upload 2024-02-12 21:21:05 +00:00
README.md Initial upload 2024-02-12 21:21:05 +00:00
icon.png Initial upload 2024-02-12 21:21:05 +00:00
index.php Initial upload 2024-02-12 21:21:05 +00:00

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 from example.com/whatever to example.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.