PHPackages                             astrotomic/laravel-webmentions - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. astrotomic/laravel-webmentions

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

astrotomic/laravel-webmentions
==============================

0.6.0(1y ago)215.7k—0%4[1 issues](https://github.com/Astrotomic/laravel-webmentions/issues)MITPHPPHP ^8.1

Since Feb 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Astrotomic/laravel-webmentions)[ Packagist](https://packagist.org/packages/astrotomic/laravel-webmentions)[ Docs](https://github.com/astrotomic/laravel-webmentions)[ Fund](https://forest.astrotomic.info)[ GitHub Sponsors](https://github.com/Gummibeer)[ RSS](/packages/astrotomic-laravel-webmentions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (7)Versions (7)Used By (0)

Laravel Webmentions
===================

[](#laravel-webmentions)

[![Latest Version](https://camo.githubusercontent.com/8b5f7074225277f02d76a701110f5e69a763cf16443ab30e20d2c13f4a8bc676/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617374726f746f6d69632f6c61726176656c2d7765626d656e74696f6e732e7376673f6c6162656c3d52656c65617365267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/astrotomic/laravel-webmentions)[![MIT License](https://camo.githubusercontent.com/66c8bf093b0cf7878b37774efa9c667a284ba063cdb46ce371d3058d2178d4ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f417374726f746f6d69632f6c61726176656c2d7765626d656e74696f6e732e7376673f6c6162656c3d4c6963656e736526636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://github.com/Astrotomic/laravel-webmentions/blob/master/LICENSE)[![Offset Earth](https://camo.githubusercontent.com/d204555ebe1fb0ae82d10c97b4f4ffc2dfdd2ba1489f98be7f7e8708333a0466/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d677265656e3f7374796c653d666f722d7468652d6261646765)](https://plant.treeware.earth/Astrotomic/laravel-webmentions)[![Larabelles](https://camo.githubusercontent.com/a2c8d5126ddd8c5ddc627176d1d2e0568f8399b50038e71fd7f774c3e24dbe4b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726162656c6c65732d2546302539462541362538342d6c6967687470696e6b3f7374796c653d666f722d7468652d6261646765)](https://www.larabelles.com/)

[![GitHub Workflow Status](https://camo.githubusercontent.com/7c66063431aec4a5169436069b50663a07ba3b5889b2300499b4ec53408fa39f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f417374726f746f6d69632f6c61726176656c2d7765626d656e74696f6e732f72756e2d74657374733f7374796c653d666c61742d737175617265266c6f676f436f6c6f723d7768697465266c6f676f3d676974687562266c6162656c3d5465737473)](https://github.com/Astrotomic/laravel-webmentions/actions?query=workflow%3Arun-tests)[![StyleCI](https://camo.githubusercontent.com/3cc7e3331386d7e13468181d3ac6fad4c5c41b04862ca6c7c35f6bc71d49d904/68747470733a2f2f7374796c6563692e696f2f7265706f732f3332323639333034352f736869656c64)](https://styleci.io/repos/322693045)[![Total Downloads](https://camo.githubusercontent.com/a13e642eb3f3b514843c12864dd719c18e31eb9fe9101a724bba55cb2208680f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617374726f746f6d69632f6c61726176656c2d7765626d656e74696f6e732e7376673f6c6162656c3d446f776e6c6f616473267374796c653d666c61742d737175617265)](https://packagist.org/packages/astrotomic/laravel-webmentions)

A simple client to retrieve [webmentions](https://webmention.io) for your pages.

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

[](#installation)

You can install the package via composer:

```
composer require astrotomic/laravel-webmentions
```

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

[](#configuration)

At firsts you will have to add your [webmention.io](https://webmention.io) API access token to the `services.php` config file.

```
return [
    // ...
    'webmention' => [
        'token' => env('WEBMENTION_TOKEN'),
    ],
    // ...
];
```

Usage
-----

[](#usage)

You can retrieve all webmentions for a given URL by calling the `get()` method on the packages client.

```
use Astrotomic\Webmentions\Facades\Webmentions;

$records = Webmentions::get('https://gummibeer.dev/blog/2020/human-readable-intervals');
```

If you omit the url as argument it will automatically use `\Illuminate\Http\Request::url()` as default. The return value will be an instance of `\Astrotomic\Webmentions\Collections\WebmentionsCollection` which provides you with predefined filter methods. You can also use the shorthand methods on the client to retrieve a collection of likes, mentions, replies or reposts.

```
use Astrotomic\Webmentions\Facades\Webmentions;

$likes = Webmentions::likes('https://gummibeer.dev/blog/2020/human-readable-intervals');
$mentions = Webmentions::mentions('https://gummibeer.dev/blog/2020/human-readable-intervals');
$replies = Webmentions::replies('https://gummibeer.dev/blog/2020/human-readable-intervals');
$reposts = Webmentions::reposts('https://gummibeer.dev/blog/2020/human-readable-intervals');
```

All items will be a corresponding instance of `\Astrotomic\Webmentions\Models\Like`, `\Astrotomic\Webmentions\Models\Mention`, `\Astrotomic\Webmentions\Models\Reply` or `\Astrotomic\Webmentions\Models\Repost`.

If you only need the count of items you can use the `Webmentions::count()` method.

```
use Astrotomic\Webmentions\Facades\Webmentions;

$counts = Webmentions::count('https://gummibeer.dev/blog/2020/human-readable-intervals');
[
  'count' => 52,
  'type' => [
    'like' => 23,
    'mention' => 8,
    'reply' => 16,
    'repost' => 5,
  ],
];
```

### Caching

[](#caching)

The client uses a poor man cache by default - so per runtime every domain is only requested once. If you want extended caching behavior you should wrap the calls in a `Cache::remember()` for example.

### Blade Component

[](#blade-component)

To receive webmentions for your page you have to add two `` tags to your head. This package provides a `` Blade component that makes it easier for you.

```

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/Astrotomic/.github/blob/master/CONTRIBUTING.md) for details. You could also be interested in [CODE OF CONDUCT](https://github.com/Astrotomic/.github/blob/master/CODE_OF_CONDUCT.md).

### Security

[](#security)

If you discover any security related issues, please check [SECURITY](https://github.com/Astrotomic/.github/blob/master/SECURITY.md) for steps to report it.

Credits
-------

[](#credits)

- [Tom Witkowski](https://github.com/Gummibeer)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Treeware
--------

[](#treeware)

You're free to use this package, but if it makes it to your production environment I would highly appreciate you buying the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to [plant trees](https://www.bbc.co.uk/news/science-environment-48870920). If you contribute to my forest you’ll be creating employment for local families and restoring wildlife habitats.

You can buy trees at [offset.earth/treeware](https://plant.treeware.earth/Astrotomic/laravel-webmentions)

Read more about Treeware at [treeware.earth](https://treeware.earth)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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.

###  Release Activity

Cadence

Every ~242 days

Recently: every ~303 days

Total

6

Last Release

687d ago

PHP version history (2 changes)0.1.0PHP ^7.4 || ^8.0

0.6.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![Gummibeer](https://avatars.githubusercontent.com/u/6187884?v=4)](https://github.com/Gummibeer "Gummibeer (36 commits)")[![tvbeek](https://avatars.githubusercontent.com/u/2026498?v=4)](https://github.com/tvbeek "tvbeek (4 commits)")

---

Tags

laravelwebmentionwebmentionslaravelastrotomicwebmentionwebmentionslaravel-webmentions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/astrotomic-laravel-webmentions/health.svg)

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

###  Alternatives

[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[ankurk91/laravel-ses-webhooks

Handle AWS SES webhooks in Laravel php framework

2534.2k](/packages/ankurk91-laravel-ses-webhooks)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)

PHPackages © 2026

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