PHPackages                             rikudou/activity-pub - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. rikudou/activity-pub

ActiveLibrary[API Development](/categories/api)

rikudou/activity-pub
====================

A strongly typed, validated and developer-friendly ActivityPub implementation in PHP

0.9.45(1y ago)71911MITPHPPHP ^8.4

Since Jan 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/RikudouSage/ActivityPub)[ Packagist](https://packagist.org/packages/rikudou/activity-pub)[ RSS](/packages/rikudou-activity-pub/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (47)Used By (0)

ActivityPub for PHP
===================

[](#activitypub-for-php)

A strongly typed and developer friendly ActivityPub implementation. All Core and Extended types are implemented. Also some widely used unofficial extensions.

Table of contents
-----------------

[](#table-of-contents)

- [ActivityPub for PHP](#activitypub-for-php)
    - [Table of contents](#table-of-contents)
    - [Installation](#installation)
    - [Objects](#objects)
        - [Naming](#naming)
        - [Objects and activities](#objects-and-activities)
        - [Validations](#validations)
        - [Parsing JSON into types](#parsing-json-into-types)
        - [Creating your own types](#creating-your-own-types)
    - [Server](#server)
        - [Request signing](#request-signing)
        - [Request validating](#request-validating)
        - [Fetching objects](#fetching-objects)
    - [Symfony usage](#symfony-usage)

Installation
------------

[](#installation)

`composer require rikudou/activity-pub`

Objects
-------

[](#objects)

### Naming

[](#naming)

All object names are the same as in the ActivityPub/ActivityStreams specifications, with the sole exception of the base `Object` which is called `BaseObject` because PHP disallows having a class called `Object`.

### Objects and activities

[](#objects-and-activities)

To construct an object, simply create it as you normally would, for example, let's construct a note:

```
