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 10mo 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 today

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

16

—

LowBetter than 4% of packages

Maintenance39

Infrequent updates — may be unmaintained

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://avatars.githubusercontent.com/u/909246?v=4)[Yosun Chang](/maintainers/yosun)[@yosun](https://github.com/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

[kop/yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget

181732.8k10](/packages/kop-yii2-scroll-pager)

PHPackages © 2026

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