PHPackages                             jeffreyvanrossum/contextr-for-laravel - 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. jeffreyvanrossum/contextr-for-laravel

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

jeffreyvanrossum/contextr-for-laravel
=====================================

contextr for laravel

0.1.0(11mo ago)06MITPHPPHP ^8.1CI failing

Since Jun 3Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/jeffreyvr/contextr-for-laravel)[ Packagist](https://packagist.org/packages/jeffreyvanrossum/contextr-for-laravel)[ Docs](https://github.com/jeffreyvr/contextr-for-laravel)[ GitHub Sponsors](https://github.com/ContextrForLaravel)[ RSS](/packages/jeffreyvanrossum-contextr-for-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (2)Used By (0)

   ![contextr logo](https://raw.githubusercontent.com/jeffreyvr/contextr/refs/heads/main/art/logo-dark.svg) ### contextr

[](#contextr)

[![Total Downloads](https://camo.githubusercontent.com/af06a935f7ff4730125c400276c3ff6a394b93a914c9d17a56558e2ad561376e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a65666672657976616e726f7373756d2f636f6e74657874722d666f722d6c61726176656c)](https://packagist.org/packages/jeffreyvanrossum/contextr-for-laravel)[![Latest Stable Version](https://camo.githubusercontent.com/2a26335857c3417f10146cc74969e8a591fba1a96bc07ede775e24187a82399d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65666672657976616e726f7373756d2f636f6e74657874722d666f722d6c61726176656c)](https://packagist.org/packages/jeffreyvanrossum/contextr-for-laravel)[![License](https://camo.githubusercontent.com/968536378df17201ebeff9005310bdc583aeee030535b3411edc91e67d8814f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a65666672657976616e726f7373756d2f636f6e74657874722d666f722d6c61726176656c)](https://packagist.org/packages/jeffreyvanrossum/contextr-for-laravel)

AI-driven text analysis for spam, sentiment, moderation, and more.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require jeffreyvanrossum/contextr-for-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="contextr-config"
```

Usage
-----

[](#usage)

```
Contextr::spam()
    ->text('Buy cheap viagra now!!! Click here: shady.link')
    ->context([
        'topic' => 'Health Forum Discussion',
        'user_history' => 'First time poster'
    ])
    ->withReasoning()
    ->analyze();

$check->data();         // full result array
$check->spam();         // true (boolean)
$check->confidence();   // 0.95 (float)
$check->reasoning();    // "Contains promotional content and suspicious link"
```

For more examples, see:

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Jeffrey van Rossum](https://github.com/jeffreyvr)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance51

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

343d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/66ca71465f93459010e10f39821b541f1c00c61233c48bcda0cea8a8d6fb6988?d=identicon)[jeffreyvr](/maintainers/jeffreyvr)

---

Top Contributors

[![jeffreyvr](https://avatars.githubusercontent.com/u/9550079?v=4)](https://github.com/jeffreyvr "jeffreyvr (6 commits)")

---

Tags

laravelContextrForLaravelcontextr

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jeffreyvanrossum-contextr-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/jeffreyvanrossum-contextr-for-laravel/health.svg)](https://phpackages.com/packages/jeffreyvanrossum-contextr-for-laravel)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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