PHPackages                             sintezis/snap-link - 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. sintezis/snap-link

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

sintezis/snap-link
==================

Link preview for PHP

1.1.0(5y ago)137PHPPHP &gt;=5.3.0CI failing

Since Aug 12Pushed 5y ago3 watchersCompare

[ Source](https://github.com/Sintezis/snaplink)[ Packagist](https://packagist.org/packages/sintezis/snap-link)[ RSS](/packages/sintezis-snap-link/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

SnapLink
========

[](#snaplink)

[![Build Status](https://camo.githubusercontent.com/84a448ff428d60754e6f0da4c7500c70dd3c8fe581d117d3bd97e56be1081789/68747470733a2f2f7472617669732d63692e6f72672f53696e74657a69732f536e61704c696e6b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Sintezis/SnapLink)
==================================================================================================================================================================================================================================================================================

[](#)

A PHP library to easily scrap link preview information from website (url).

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

[](#installation)

### composer

[](#composer)

Run `composer require sintezis/snap-link`

SnapLink will be installed in vendor/sintezis/snap-link

In destination project include composer autoload file from vendor/autoload.php

Usage
-----

[](#usage)

```
use Sintezi\SnapLink\SnapLink;

$snapLink = new SnapLink('http://github.com');
$parsed = $snapLink->getParsed();
foreach ($parsed as $parserName => $link) {
    echo $parserName . PHP_EOL . PHP_EOL;

    echo $link->getUrl() . PHP_EOL;
    echo $link->getRealUrl() . PHP_EOL;
    echo $link->getTitle() . PHP_EOL;
    echo $link->getDescription() . PHP_EOL;
    echo $link->getImage() . PHP_EOL;
    print_r($link->getPictures());
}
```

**Output**

```
general

http://github.com
https://github.com/
GitHub · Build software better, together.
GitHub is the best place to build software together. Over 10.1 million people use GitHub to share code.
https://assets-cdn.github.com/images/modules/open_graph/github-octocat.png
Array
(
    [0] => https://assets-cdn.github.com/images/modules/site/home-ill-build.png?sn
    [1] => https://assets-cdn.github.com/images/modules/site/home-ill-work.png?sn
    [2] => https://assets-cdn.github.com/images/modules/site/home-ill-projects.png?sn
    [3] => https://assets-cdn.github.com/images/modules/site/home-ill-platform.png?sn
    [4] => https://assets-cdn.github.com/images/modules/site/org_example_nasa.png?sn
)

```

### Youtube example

[](#youtube-example)

```
use Sintezi\SnapLink\SnapLink;
use Sintezi\SnapLink\Model\VideoLink;

$snapLink = new SnapLink('https://www.youtube.com/watch?v=8ZcmTl_1ER8');

$parsed = $linkPreview->getParsed();
foreach ($parsed as $parserName => $link) {
    echo $parserName . PHP_EOL . PHP_EOL;

    echo $link->getUrl() . PHP_EOL;
    echo $link->getRealUrl() . PHP_EOL;
    echo $link->getTitle() . PHP_EOL;
    echo $link->getDescription() . PHP_EOL;
    echo $link->getImage() . PHP_EOL;
    if ($link instanceof VideoLink) {
        echo $link->getVideoId() . PHP_EOL;
        echo $link->getEmbedCode() . PHP_EOL;
    }
}
```

**Output**

```
youtube

https://www.youtube.com/watch?v=8ZcmTl_1ER8
http://gdata.youtube.com/feeds/api/videos/8ZcmTl_1ER8?v=2&alt=jsonc
Epic sax guy 10 hours
I had to remove my original one so I reuploaded this with much better quality.
(If you want it sound like previous one, try setting quality to 240p)
Yeah, I know that video sucks compared to original but no can do :(
http://i1.ytimg.com/vi/8ZcmTl_1ER8/hqdefault.jpg
8ZcmTl_1ER8

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~493 days

Total

2

Last Release

1973d ago

### Community

Maintainers

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

---

Top Contributors

[![zvonimirsintezis](https://avatars.githubusercontent.com/u/46371485?v=4)](https://github.com/zvonimirsintezis "zvonimirsintezis (3 commits)")

---

Tags

urlphpscraping

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sintezis-snap-link/health.svg)

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

###  Alternatives

[dusterio/link-preview

Link preview generation for PHP with Laravel support

126326.6k3](/packages/dusterio-link-preview)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)

PHPackages © 2026

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