Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Webmentions

Webmentions Laravel Package

mattrothenberg/webmentions

A Laravel package for adding Webmention support to your site, handling both sending and receiving W3C Webmentions so you can notify linked sites and collect mentions, likes, and replies from across the web.

View on GitHub
Deep Wiki
Context7

A {{ webmentions }} tag to receive and display webmentions on a Statamic website

Frequently asked questions about Webmentions
How do I install mattrothenberg/webmentions in a Laravel app?
Install the package with Composer by running composer require mattrothenberg/webmentions. Then publish the package migrations and run php artisan migrate so the webmentions table is created. Review the package README for any config or route publishing steps specific to your Laravel version.
Which Laravel versions are supported by mattrothenberg/webmentions?
The provided package overview does not list explicit Laravel version constraints. Check the package composer.json and README for the current supported Laravel and PHP versions before installing. Because it relies on Eloquent models and migrations, it is intended for standard Laravel applications.
How does the package verify incoming webmentions?
When a webmention request arrives, the package checks the source URL to confirm that it actually links to your target page. This source verification helps reduce spam and low-quality mentions before they are persisted. Accepted mentions are then stored through the package's Eloquent models.
Where does mattrothenberg/webmentions store received mentions?
Received mentions are persisted with Eloquent models backed by package migrations. After you publish and run the migrations, you can query the mentions table through the package model. This makes it straightforward to list, moderate, or render mentions in your own application.
How do I configure the webmention endpoint route?
The package provides configurable routes and an endpoint for receiving incoming webmentions. Publish the package configuration and set the route or path options to match your site's Webmention endpoint. Make sure the resulting URL is discoverable from your pages, typically through a link element or HTTP Link header.
Can I moderate webmentions before displaying them?
Yes. The package stores accepted mentions with Eloquent, and the overview notes that it is easy to extend for moderation or display. You can add a status or approved flag to the model or table and only query approved mentions in your views. This lets you review incoming likes, replies, and mentions before they appear publicly.
How do I display webmentions on my Laravel site?
Query the package's Eloquent model for the mentions you want to show, then pass that collection to a Blade view. You can filter by target page, mention type, or moderation status depending on the columns you add. Render the source URL, author details, and content in your template to show the conversation around each post.
Does mattrothenberg/webmentions support sending outbound webmentions?
The package blurb says it handles both sending and receiving W3C Webmentions, but the overview emphasizes receiving, verification, and persistence. Review the package source and README to confirm the outbound sending API in your installed version. If outbound support is limited, you can still use the package for incoming mentions and handle notifications separately.
How can I test webmention receiving in my Laravel application?
Write a Laravel HTTP test that posts source and target values to your configured webmention endpoint. Fake the outbound HTTP request used to fetch the source page so you can control whether the source links back to your target. Then assert that a valid mention is stored and an invalid one is rejected.
Is mattrothenberg/webmentions actively maintained, and what are alternatives?
Maintenance status is not specified in the provided context, so check the GitHub repository for recent commits, releases, and issue activity before adopting it. For alternatives, compare other Laravel or PHP Webmention packages and the W3C Webmention specification for endpoint behavior. If you need long-term support, prefer a package with recent Laravel compatibility and clear upgrade notes.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings