ofaws / ai-response-sanitizer
A Laravel package providing simple methods to sanitize text responses received from ChatGPT or other LLM
1.0.1
2025-03-12 08:12 UTC
Requires
- php: ^8.3|^8.4
- illuminate/contracts: ^10.0|^11.0|^12.0
- illuminate/support: ^10.0|^11.0|^12.0
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- nunomaduro/collision: ^8.1
- orchestra/testbench: ^8.22|^9.0
- pestphp/pest: ^3.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.