PHPackages                             absurdityai/link-preview - 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. absurdityai/link-preview

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

absurdityai/link-preview
========================

AbsurdityAI Link Preview generator for PHP

01[1 PRs](https://github.com/absurdity-ai/web-link-preview-generator/pulls)PHP

Since Aug 18Pushed 9mo agoCompare

[ Source](https://github.com/absurdity-ai/web-link-preview-generator)[ Packagist](https://packagist.org/packages/absurdityai/link-preview)[ RSS](/packages/absurdityai-link-preview/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

AbsurdityAI Link Preview
========================

[](#absurdityai-link-preview)

A small PHP library that builds the HTML meta tags required for rich link previews in social networks and messaging apps.

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

[](#installation)

```
composer require absurdityai/link-preview
```

Usage
-----

[](#usage)

```
use AbsurdityAI\\LinkPreview\\LinkPreviewGenerator;

$generator = new LinkPreviewGenerator();

echo $generator->generate([
    'title' => 'My Article',
    'description' => 'Short summary',
    'image' => 'https://example.com/image.png',
    'url' => 'https://example.com/article',
    'site_name' => 'Example',
    'twitter_site' => '@example'
]);
```

The generated string can be placed inside the `` element of your page to provide Open Graph and Twitter Card data.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance42

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity18

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/fd96c64f320eb173f5f6652646484fd8885ce30b2d88501dfa1ee10359ad69e4?d=identicon)[yosun](/maintainers/yosun)

---

Top Contributors

[![yosun](https://avatars.githubusercontent.com/u/909246?v=4)](https://github.com/yosun "yosun (5 commits)")

### Embed Badge

![Health badge](/badges/absurdityai-link-preview/health.svg)

```
[![Health](https://phpackages.com/badges/absurdityai-link-preview/health.svg)](https://phpackages.com/packages/absurdityai-link-preview)
```

###  Alternatives

[sylvainjule/embed

Embed field for Kirby

7812.8k](/packages/sylvainjule-embed)[laravel-frontend-presets/paper

Laravel 10.x Front-end preset for paper dashboard

5018.0k](/packages/laravel-frontend-presets-paper)[nuxtifyts/dash-stack-theme

DashStack theme for filament php

1914.0k](/packages/nuxtifyts-dash-stack-theme)[phpviet/number-to-words

Thư viện hổ trợ chuyển đổi số sang chữ số.

219.1k5](/packages/phpviet-number-to-words)

PHPackages © 2026

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