PHPackages                             danielpetrica/laravel-activitypub - 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. danielpetrica/laravel-activitypub

ActiveLibrary[API Development](/categories/api)

danielpetrica/laravel-activitypub
=================================

ActivityPub server implementation for Laravel applications. WebFinger, actor profiles, inbox/outbox, and federation.

00PHP

Since Jun 21Pushed todayCompare

[ Source](https://github.com/danielpetrica/laravel-activitypub)[ Packagist](https://packagist.org/packages/danielpetrica/laravel-activitypub)[ RSS](/packages/danielpetrica-laravel-activitypub/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel ActivityPub
===================

[](#laravel-activitypub)

A self-hosted ActivityPub server implementation for Laravel 13, enabling federation with the Fediverse (Mastodon, Pleroma, Misskey, Pixelfed, PeerTube, etc.).

Features
--------

[](#features)

- **WebFinger** — Actor discovery via `/.well-known/webfinger`
- **Actor profiles** — ActivityStreams JSON-LD representations
- **Inbox/Outbox** — `OrderedCollection` with pagination support
- **HTTP Signatures** — RSA-SHA256 signing and verification with Digest support
- **Federation** — Outbound delivery of `Create`, `Update`, `Delete`, `Follow`, `Accept`, `Like`, `Announce`, `Undo`, and replies
- **Follower management** — Track followers from remote servers
- **Shared inbox** — `POST /inbox` for instance-level activity delivery
- **NodeInfo** — `/.well-known/nodeinfo` and `/nodeinfo/2.0`
- **host-meta** — `/.well-known/host-meta` with WebFinger XRD template
- **Blade-based Fediverse web UI** — Dashboard, timeline, inbox, discover, profile editing
- **Artisan commands** — `activitypub:create-actor`, `activitypub:prune-activities`
- **Queue jobs** — Async delivery with retries, remote actor fetching with deduplication

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

[](#installation)

```
composer require danielpetrica/laravel-activitypub
```

Publish the configuration and migrations:

```
php artisan vendor:publish --tag=activitypub-config
php artisan vendor:publish --tag=activitypub-migrations
php artisan migrate
```

Configuration
-------------

[](#configuration)

```
ACTIVITYPUB_DOMAIN=https://your-domain.com
ACTIVITYPUB_FEDERATION_ENABLED=true   # enable outbound federation
ACTIVITYPUB_FEDIVERSE_ENABLED=true    # enable Blade-based web UI
```

Creating an Actor
-----------------

[](#creating-an-actor)

```
php artisan activitypub:create-actor --username=yourname --name="Your Name"
```

Federating Content
------------------

[](#federating-content)

Have your Eloquent model implement `FederatableContentContract` and use the `FederatesContent` trait:

```
use DanielPetrica\LaravelActivityPub\Contracts\FederatableContentContract;
use DanielPetrica\LaravelActivityPub\Traits\FederatesContent;

class Post extends Model implements FederatableContentContract
{
    use FederatesContent;

    public function shouldFederate(): bool { return $this->status === 'published'; }
    public function activityPubActor(): ActorContract { /* return your actor */ }
    public function getActivityPubId(): string { return url("/posts/{$this->id}"); }
    // ... implement remaining contract methods
}
```

Testing
-------

[](#testing)

```
vendor/bin/pest --filter=InboxProcessingTest
vendor/bin/pest --filter=ConsoleCommandsTest
```

Postponed Features (TODO)
-------------------------

[](#postponed-features-todo)

These items are planned for future releases:

- **Move / AlsoKnownAs** — Account migration support (see ActivityPub spec §5.4)
- **Block activity** — Blocking remote actors, filtering blocked content from timeline
- **Tailwind CSS build step** — The Fediverse web UI currently loads Tailwind via CDN. Replace with a compiled CSS build step for production.
- **Full `OrderedCollectionPage` pagination** — Currently returns `OrderedCollection` with `first`/`last` pointers. Proper page-by-page `OrderedCollectionPage` responses should be added.
- **JSON-LD compaction** — Handle compacted JSON-LD payloads from Pleroma/Akkoma.
- **`outbox_url` shared inbox** — Add `sharedInbox` to actor profiles for servers that support it.
- **Admin dashboard** — Filament-based admin panel for managing actors, viewing federation stats.

License
-------

[](#license)

MIT

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a5d82612a474f480b832567911d378cef4d4029dbbfd6747f723ba1af87aa155?d=identicon)[danielpetrica](/maintainers/danielpetrica)

---

Top Contributors

[![danielpetrica](https://avatars.githubusercontent.com/u/4850686?v=4)](https://github.com/danielpetrica "danielpetrica (1 commits)")

---

Tags

activitypublaravellaravel-packagemastodonnode-infophp85webfingerwellknown

### Embed Badge

![Health badge](/badges/danielpetrica-laravel-activitypub/health.svg)

```
[![Health](https://phpackages.com/badges/danielpetrica-laravel-activitypub/health.svg)](https://phpackages.com/packages/danielpetrica-laravel-activitypub)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[200mph/tnt-express-connect

TNT ExpressConnect (API) client

2228.2k](/packages/200mph-tnt-express-connect)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
