PHPackages                             pyrsmk/longuevue - 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. pyrsmk/longuevue

Abandoned → [nikic/fast-route](/?search=nikic%2Ffast-route)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

pyrsmk/longuevue
================

A simple contents extractor

0.1.6(9y ago)04021MITPHPPHP &gt;=5.4.0

Since Mar 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/pyrsmk/LongueVue)[ Packagist](https://packagist.org/packages/pyrsmk/longuevue)[ RSS](/packages/pyrsmk-longuevue/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (7)Used By (1)

LongueVue 0.1.6
===============

[](#longuevue-016)

**LongueVue is now unmaintained. If you're searching for a web scraper, use [Goutte](https://github.com/FriendsOfPHP/Goutte). If you're looking for a router, take a look at [FastRoute](https://github.com/nikic/FastRoute).**

LongueVue is a contents extractor built on top of `preg_match()`. Concretely, you can extract any string contents from anything, like discover articles on some blog to create a RSS stream per example.

Installing
----------

[](#installing)

Pick up the source or install it with [Composer](https://getcomposer.org/) :

```
composer require pyrsmk/longuevue

```

Matching and extracting
-----------------------

[](#matching-and-extracting)

The pattern is a chain with `{var}` variables. If the chain matches, then the values are extracted :

```
$longuevue=new LongueVue('/articles/{id}/comments');
// Will return false
$longuevue->match('/articles');
// Will return false too
$longuevue->match('/articles//comments');
// Will return array('id'=>'72')
$longuevue->match('/articles/72/comments');
// Will return array()
$longuevue->match('/articles//comments');
```

Validators
----------

[](#validators)

You can add a validator to the engine for a specific value. If that value does not match the regex validator, then the entire chain won't match at all.

```
$longuevue=new LongueVue('/articles/{id}/comments');
$longuevue->addValidator('id','\d+');
// Match
$longuevue->match('/articles/72/comments');
// Won't match
$longuevue->match('/articles/some_article/comments');
```

Default values
--------------

[](#default-values)

Also, if the chain can have some missing values, you can declare default ones :

```
$longuevue=new LongueVue('/articles/{id}/comments');
$longuevue->addDefaultValue('id','1');
// Will return array('id'=>'72')
$longuevue->match('/articles/72/comments');
// Will return array('id'=>'1')
$longuevue->match('/articles//comments');
```

License
-------

[](#license)

LongueVue is published under the [MIT license](http://dreamysource.mit-license.org).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Recently: every ~121 days

Total

6

Last Release

3638d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3.0

0.1.3PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f97d81cfd6d30587cdae24925bc0899331394d723d04ee4b76eb9435a565fe9?d=identicon)[pyrsmk](/maintainers/pyrsmk)

---

Tags

datacontentextractcontentspattern

### Embed Badge

![Health badge](/badges/pyrsmk-longuevue/health.svg)

```
[![Health](https://phpackages.com/badges/pyrsmk-longuevue/health.svg)](https://phpackages.com/packages/pyrsmk-longuevue)
```

###  Alternatives

[fakerphp/faker

Faker is a PHP library that generates fake data for you.

3.9k358.5M3.5k](/packages/fakerphp-faker)[willdurand/negotiation

Content Negotiation tools for PHP provided as a standalone library.

1.4k122.0M157](/packages/willdurand-negotiation)[dflydev/dot-access-data

Given a deep data structure, access data by dot notation.

718359.1M86](/packages/dflydev-dot-access-data)[marquine/php-etl

Extract, Transform and Load data using PHP.

182137.5k](/packages/marquine-php-etl)[laurentvw/scrapher

A web scraper for PHP to easily extract data from web pages

192.5k1](/packages/laurentvw-scrapher)[bisight/etl

BiSight ETL: Extract, Transform, Load toolkit

124.1k](/packages/bisight-etl)

PHPackages © 2026

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