From 84bdceedea746ed3f5e3d3332c4a1e66ce7209f3 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 15 Jan 2019 11:19:54 -0500 Subject: [PATCH] Fix typos --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 07f1c52..3dd8c98 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ **This library is a work-in-progress. The documentation below reflects what the API will look like once it's done.** -ActivityPub-PHP is a library that embeds a full ActivityPub server into any PHP project. It works with any SQL database and any web framework. At a high level, it provides a request handler that you can route ActivityPub requests to which will take care of persisting the received activity, performing any necessary side effects, and delivering the activity to other federated servers. +ActivityPub-PHP is a library that embeds a full ActivityPub server into any PHP project. It works with any SQL database and any web framework. At a high level, it provides a request handler that you can route ActivityPub requests to which will take care of persisting the received activity, performing any necessary side effects, and delivering the activity to other federated servers. It also provides a PHP API to create and manage actors and activities. ## What it does - stores incoming activities to your project's existing SQL database in a configurable fashion - implement both the client-to-server and the server-to-server parts of the ActivityPub protocol - verify HTTP signatures on incoming ActivityPub requests and sign outgoing ActivityPub requests -- provide a PHP API so you can create and manage Actors and send activities directly from code +- provide a PHP API so you can create and manage actors and send activities directly from code - hook into your application's user authentication logic to provide ways to associate your users with ActivityPub actors - manage the JSON-LD context for you, with hooks if you need to add custom fields - support PHP > 5.* @@ -57,7 +57,7 @@ $activitypub = new ActivityPub( array( 'dbPrefix' => 'activitypub_', ) ); -// Routing incoming ActivityPub requests to the ActivityPub-PHP +// Routing incoming ActivityPub requests to ActivityPub-PHP if ( in_array( $_SERVER['HTTP_ACCEPT'], array( 'application/ld+json', 'application/activity+json' ) ) ) { // Handle the request, perform any side effects and delivery,