PHPackages                             mxkh/url-finder - 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. mxkh/url-finder

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

mxkh/url-finder
===============

Composer package by Max Khartanovych

0.1.8(10y ago)48471MITPHPPHP &gt;=5.4.0

Since Nov 1Pushed 10y ago2 watchersCompare

[ Source](https://github.com/mxkh/url-finder)[ Packagist](https://packagist.org/packages/mxkh/url-finder)[ RSS](/packages/mxkh-url-finder/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (10)Used By (1)

### Description

[](#description)

This simple library will help you find URLs in the html page or in the text. Also there is support for popular video services such as Youtube, Rutube, Vimeo.

### Installing

[](#installing)

TODO

### How-to

[](#how-to)

Find first URL in the html page or in the text:

```
$content = 'Full Resort Segment from "Days of My Youth"
            https://www.youtube.com/watch?v=EhhNOYsAcGQ

            Filthy but Fine from Arthur Metcalf on Vimeo.
            http://rutube.ru/video/6af96109ba23424897b961de023126c9/?ref=search';
$urlFinder = new UrlFinder();
$urls = $urlFinder->url->find($content)->one();

```

Find all URLs in the html page or in the text:

```
$urlFinder = new UrlFinder();
$urls = $urlFinder->url->find($content)->all();

```

Find first Youtube video URL in the html page or in the text:

```
$urlFinder = new UrlFinder();
$urls = $urlFinder->youtube->find($content)->one();

```

Find all Youtube video URLs in the html page or in the text:

```
$urlFinder = new UrlFinder();
$urls = $urlFinder->youtube->find($content)->all();

```

Find Vimeo video URL in the html page or in the text:

```
$urlFinder = new UrlFinder();
$urls = $urlFinder->vimeo->find($content)->one();

```

Find all Vimeo video URLs in the html page or in the text:

```
$urlFinder = new UrlFinder();
$urls = $urlFinder->vimeo->find($content)->all();

```

Find RuTube video URL in the html page or in the text:

```
$urlFinder = new UrlFinder();
$urls = $urlFinder->rutube->find($content)->one();

```

Find all RuTube video URLs in the html page or in the text:

```
$urlFinder = new UrlFinder();
$urls = $urlFinder->rutube->find($content)->all();

```

### Thanks to:

[](#thanks-to)

jmrware() &amp; wwdboer() for writing the regexps for the Youtube &amp; Vimeo

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

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 ~1 days

Total

8

Last Release

3889d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84708654621ba77d99be1dd2239dca66eaa8136dc8288517c7e96e4827037150?d=identicon)[maxHartanovich](/maintainers/maxHartanovich)

---

Top Contributors

[![mxkh](https://avatars.githubusercontent.com/u/3147546?v=4)](https://github.com/mxkh "mxkh (1 commits)")

### Embed Badge

![Health badge](/badges/mxkh-url-finder/health.svg)

```
[![Health](https://phpackages.com/badges/mxkh-url-finder/health.svg)](https://phpackages.com/packages/mxkh-url-finder)
```

PHPackages © 2026

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