PHPackages                             ricasolucoes/phpinsight - 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. ricasolucoes/phpinsight

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

ricasolucoes/phpinsight
=======================

Sentiment analysis tool for PHP

v3.0.0(5y ago)0841GPLv3 or laterHackPHP &gt;=7.0

Since Aug 14Pushed 2y agoCompare

[ Source](https://github.com/RiCaAnalysis/phpInsight)[ Packagist](https://packagist.org/packages/ricasolucoes/phpinsight)[ Docs](https://github.com/dmitry-udod/php-insight)[ Fund](https://ricasolucoes.com.br/open-source/support-us)[ GitHub Sponsors](https://github.com/ricasolucoes)[ RSS](/packages/ricasolucoes-phpinsight/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (16)Used By (1)

php-insight - Sentiment Analysis in PHP
---------------------------------------

[](#php-insight---sentiment-analysis-in-php)

### Installation

[](#installation)

```
composer require ricasolucoes/php-insight
```

### Usage

[](#usage)

```
use PHPInsight\Sentiment;
#....
$analyzer = new Sentiment();
$analyzer->categorise($string); #return text category, positive, negative or neutral
$scores = $analyzer->score($string);

#Returns text scores, for example
#(
#    [neg] => 0.865
#    [neu] => 0.108
#    [pos] => 0.027
#)
```

### Demo

[](#demo)

Run

```
composer demo
```

### Generate dictionaries

[](#generate-dictionaries)

Run

```
composer generate-dictionaries
```

### Tests

[](#tests)

Install and run phpunit in project dir

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~783 days

Total

10

Last Release

847d ago

Major Versions

v2.0.9 → v3.0.02020-09-19

PHP version history (3 changes)v2.0.4PHP &gt;=5.3.0

v3.0.0PHP &gt;=7.0

0.4.4PHP ^7.2|^8.0

### Community

Maintainers

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

---

Top Contributors

[![JWHennessey](https://avatars.githubusercontent.com/u/1051088?v=4)](https://github.com/JWHennessey "JWHennessey (35 commits)")[![OsaAjani](https://avatars.githubusercontent.com/u/11045858?v=4)](https://github.com/OsaAjani "OsaAjani (32 commits)")[![dmitry-udod](https://avatars.githubusercontent.com/u/4639175?v=4)](https://github.com/dmitry-udod "dmitry-udod (14 commits)")[![ricardosierra](https://avatars.githubusercontent.com/u/5499444?v=4)](https://github.com/ricardosierra "ricardosierra (14 commits)")[![hypeJunction](https://avatars.githubusercontent.com/u/1202761?v=4)](https://github.com/hypeJunction "hypeJunction (6 commits)")[![Misterbural](https://avatars.githubusercontent.com/u/6408666?v=4)](https://github.com/Misterbural "Misterbural (5 commits)")[![exussum12](https://avatars.githubusercontent.com/u/1102850?v=4)](https://github.com/exussum12 "exussum12 (2 commits)")[![Jleagle](https://avatars.githubusercontent.com/u/381099?v=4)](https://github.com/Jleagle "Jleagle (1 commits)")[![toddnestor](https://avatars.githubusercontent.com/u/6495028?v=4)](https://github.com/toddnestor "toddnestor (1 commits)")[![isfonzar](https://avatars.githubusercontent.com/u/7096423?v=4)](https://github.com/isfonzar "isfonzar (1 commits)")

---

Tags

phpsentimentinsightsentiment analysis

### Embed Badge

![Health badge](/badges/ricasolucoes-phpinsight/health.svg)

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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