PHPackages                             aheissenberger/sentimentanalyser - 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. aheissenberger/sentimentanalyser

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

aheissenberger/sentimentanalyser
================================

German Sentiment analysis library for PHP.

259.3k↑23.5%2PHP

Since Jul 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/aheissenberger/php-sentimentanalyser)[ Packagist](https://packagist.org/packages/aheissenberger/sentimentanalyser)[ RSS](/packages/aheissenberger-sentimentanalyser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Composer Library Template
=========================

[](#composer-library-template)

Simple german text sentiment analyser

Features
--------

[](#features)

- German sentiment word dictionary "SentiWS"
- PSR-4 autoloading compliant structure
- Unit-Testing with PHPUnit

Installation
============

[](#installation)

To get the latest version of Sentiment Analysis, simply add the following line to the require block of your composer.json file:

```
composer require aheissenberger/sentimentanalyser:dev-master

```

Usage
-----

[](#usage)

Returns a positive number for positive sentiment association and negative number for negative sentiment association.

```
$var = new aheissenberger\sentimentanalyser\Sentiment;
echo $var->analyse('Es ist nicht so toll');
//=> (negative)

```

Create Dictionary from SentiWS
------------------------------

[](#create-dictionary-from-sentiws)

```
php -f ./helper/create_dict.php > ./src/dicts/de.php

```

Credits
-------

[](#credits)

This project is based on this javascript implementation:

German sentiment word dictionary "SentiWS"

R. Remus, U. Quasthoff &amp; G. Heyer: SentiWS - a Publicly Available German-language Resource for Sentiment Analysis. In: Proceedings of the 7th International Language Ressources and Evaluation (LREC'10), pp. 1168-1171, 2010

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 81.8% 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.

### Community

Maintainers

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

---

Top Contributors

[![aheissenberger](https://avatars.githubusercontent.com/u/200095?v=4)](https://github.com/aheissenberger "aheissenberger (9 commits)")[![imsoftware](https://avatars.githubusercontent.com/u/1321773?v=4)](https://github.com/imsoftware "imsoftware (2 commits)")

### Embed Badge

![Health badge](/badges/aheissenberger-sentimentanalyser/health.svg)

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

###  Alternatives

[akrabat/akrabat-session

A Zend Framework 2 module for configuring sessions

134.5k](/packages/akrabat-akrabat-session)

PHPackages © 2026

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