| Recommend this page to a friend! | 
| Info | Documentation | 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.
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Doc. | Documentation | |||
| / | src | 
| File | Role | Description | ||
|---|---|---|---|---|
|    | 
Class | Class source | ||
| / | src | / | Rules | 
| File | Role | Description | 
|---|---|---|
|    | 
Class | Class source | 
|    | 
Class | Class source | 
|    | 
Class | Class source | 
|    | 
Class | Class source | 
|    | 
Class | Class source | 
|    | 
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. | 
| 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.