PHPackages                             ofaws/ai-response-sanitizer - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ofaws/ai-response-sanitizer

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ofaws/ai-response-sanitizer
===========================

A Laravel package providing simple methods to sanitize text responses received from ChatGPT or other LLM

1.0.2(2mo ago)013MITPHPPHP ^8.5|^8.3|^8.4

Since Nov 15Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/ofaws/ai-response-sanitizer)[ Packagist](https://packagist.org/packages/ofaws/ai-response-sanitizer)[ RSS](/packages/ofaws-ai-response-sanitizer/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (12)Versions (4)Used By (0)

A simple sanitizer of text responses received from ChatGPT or other LLM for Laravel
===================================================================================

[](#a-simple-sanitizer-of-text-responses-received-from-chatgpt-or-other-llm-for-laravel)

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

[](#installation)

You can install the package via composer:

```
composer require ofaws/ai-response-sanitizer
```

Usage
-----

[](#usage)

```
use Ofaws\Sanitizer\Sanitizer;

$sanitized = Sanitizer::json($response);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

License
-------

[](#license)

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

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance86

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

Every ~262 days

Total

3

Last Release

72d ago

PHP version history (3 changes)1.0.0PHP ^8.3

1.0.1PHP ^8.3|^8.4

1.0.2PHP ^8.5|^8.3|^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/91540029?v=4)[Olya Fursova](/maintainers/ofaws)[@ofaws](https://github.com/ofaws)

---

Top Contributors

[![OFursova](https://avatars.githubusercontent.com/u/29506407?v=4)](https://github.com/OFursova "OFursova (3 commits)")

---

Tags

sanitizerstring-sanitizerofaws

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/ofaws-ai-response-sanitizer/health.svg)

```
[![Health](https://phpackages.com/badges/ofaws-ai-response-sanitizer/health.svg)](https://phpackages.com/packages/ofaws-ai-response-sanitizer)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.9k3](/packages/defstudio-telegraph)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.8M75](/packages/spatie-laravel-honeypot)[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M167](/packages/spatie-laravel-health)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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