PHPackages                             ropendev/expression - 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. ropendev/expression

ActiveLibrary

ropendev/expression
===================

Text Analyser: Extract Expression from a text and order it by density.

0.0.6(7y ago)015Apache-2.0PHP

Since Jan 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/RobinDev/ExtractExpression)[ Packagist](https://packagist.org/packages/ropendev/expression)[ Docs](https://piedweb.com)[ RSS](/packages/ropendev-expression/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

Text Analyser : Expression in a text per Usage
==============================================

[](#text-analyser--expression-in-a-text-per-usage)

Install
-------

[](#install)

Via [Packagist](https://packagist.org/packages/ropendev/expression)

Usage
-----

[](#usage)

```
use \rOpenDev\curl\CurlRequest;

...
// Configure
$test = new \rOpenDev\ExtractExpression\ExtractExpression();
$test->onlyInSentence     = true; // Default value: FALSE
$test->expressionMaxWords = 5;    // Max expression size in words
$test->keepTrail          = 5; // Don't keep trail for less than 3 occurences found ine one text
$test->addContent("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed...");

// Get Results
$test->getExpressions(int max = 0); // @return array with expression => number
$test->getTrail('expression'); // @return array with sentence where we find expression (best with onlyInSentence = true)
$test->getTrails(); // @return array with expression => array trails

$test->getWordNumber(); // @return int
```

Contribute
----------

[](#contribute)

### To send a pull resquest

[](#to-send-a-pull-resquest)

1. Please check if test are still running without error (`phpunit`)
2. Check coding standard before to commit : `php-cs-fixer fix src --rules=@Symfony --verbose && php-cs-fixer fix src --rules='{"array_syntax": {"syntax": "short"}}' --verbose`

### Contributors

[](#contributors)

- [Robin](https://www.robin-d.fr/) / [Pied Web](https://piedweb.com)
- ...

[![Latest Version](https://camo.githubusercontent.com/8af67700a2c8cd208e4d4a3c1e962e414029003dbf9c973bfdb00491715771e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f526f62696e4465762f4578747261637445787072657373696f6e2e7376673f7374796c653d666c6174266c6162656c3d72656c65617365)](https://github.com/RobinDev/ExtractExpression/tags)[![Build Status](https://camo.githubusercontent.com/f09476cc7e22f69df34646ffd9d7bbf24828a99bf26af567838ca19404199c0f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f506965645765622f434d532f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/RobinDev/ExtractExpression)[![Quality Score](https://camo.githubusercontent.com/564567df4d5c6e681f045752ecbda5bd5ec2eb53788aa710a7b55454f002be2e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f526f62696e4465762f4578747261637445787072657373696f6e2e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/RobinDev/ExtractExpression)[![Total Downloads](https://camo.githubusercontent.com/ae66c8dbd4c3ac35674dc01d32c4fb9df3e0792419bbb0f4319c040848f3146b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f70656e6465762f65787072657373696f6e2e7376673f7374796c653d666c6174)](https://packagist.org/packages/ropendev/expression)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity55

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

Total

6

Last Release

2686d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/afce4cf517928a50560237f1410d5957271fd808671b2216687ecf1422adaee0?d=identicon)[Robin D.](/maintainers/Robin%20D.)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ropendev-expression/health.svg)

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

###  Alternatives

[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.7k3.7M389](/packages/pimcore-pimcore)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[bowphp/framework

The bow PHP Framework

6015.5k8](/packages/bowphp-framework)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)[byrokrat/autogiro

Read and write files for the swedish direct debit system autogirot

1233.6k2](/packages/byrokrat-autogiro)

PHPackages © 2026

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