| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 49 | All time:  10,738 This week: 74  | ||||
| Version | License | PHP version | Categories | |||
| ai-validation 1.0.0 | MIT/X Consortium ... | 5 | PHP 5, Libraries, Validation, Artific... | 
AI Validator for Laravel: Uses ChatGPT (GPT-3.5-turbo) to easily check and filter user inputs.
You can install the package into a Laravel app via composer:
composer require naif/ai-validation
php artisan vendor:publish --provider="Naif\AIValidation\AIValidationServiceProvider" 
Create your API Key from https://platform.openai.com/api-keys
Add API Key in .env file
CHATGPT_API_KEY=
Field validation rule
use Naif\AIValidation\Rules\AIValidation;
$request->validate([
    'field_name' => [AIValidation::make('ads')],
]);
https://naif.io
Bug Tracker:
https://github.com/naifalshaye/ai-validation/issues/new
The MIT License (MIT). Please see License File for more information.
|  Files (11) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  config (1 file) | ||||
|  src (1 file, 1 directory) | ||||
|    composer.json | Data | Auxiliary data | ||
|    LICENSE | Lic. | License text | ||
|    README.md | Doc. | Documentation | ||
|  Files (11) | / | src | 
| File | Role | Description | ||
|---|---|---|---|---|
|  Rules (6 files) | ||||
|  AIValidationServiceProvider.php | Class | Class source | ||
|  Files (11) | / | src | / | Rules | 
| File | Role | Description | 
|---|---|---|
|  AbstractAIValidationRule.php | Class | Class source | 
|  AIValidation.php | Class | Class source | 
|  AIValidationRule.php | Class | Class source | 
|  AIValidationRuleLaravel10.php | Class | Class source | 
|  AIValidationRuleLaravel8.php | Class | Class source | 
|  AIValidationRuleLaravel9.php | Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.