ofaws / ai-response-sanitizer
A Laravel package providing simple methods to sanitize text responses received from ChatGPT or other LLM
1.0.2
2026-04-24 10:27 UTC
Requires
- php: ^8.5|^8.3|^8.4
- illuminate/contracts: ^13.0|^11.0|^12.0
- illuminate/support: ^13.0|^11.0|^12.0
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- nunomaduro/collision: ^8.1
- orchestra/testbench: ^9.0|^10.0|^11.0
- pestphp/pest: ^3.0|^4.0
README
Installation
You can install the package via composer:
composer require ofaws/ai-response-sanitizer
Usage
use Ofaws\Sanitizer\Sanitizer; $sanitized = Sanitizer::json($response);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.