11# PHP Form Validator - PFV
22
3- [ ![ Total Downloads] ( https://poser.pugx.org/peterson/php-form- validator/downloads )] ( https://packagist.org/packages/peterson/php-form- validator )
4- [ ![ Latest Stable Version] ( https://poser.pugx.org/peterson/php-form- validator/version.png )] ( https://packagist.org/packages/peterson/php-form- validator )
5- [ ![ License] ( https://poser.pugx.org/peterson/php-form- validator/license )] ( https://packagist.org/packages/peterson/php-form- validator )
3+ [ ![ Total Downloads] ( https://poser.pugx.org/peterson/validator/downloads )] ( https://packagist.org/packages/peterson/validator )
4+ [ ![ Latest Stable Version] ( https://poser.pugx.org/peterson/validator/version.png )] ( https://packagist.org/packages/peterson/validator )
5+ [ ![ License] ( https://poser.pugx.org/peterson/validator/license )] ( https://packagist.org/packages/peterson/validator )
66[ ![ Build Status] ( https://github.com/tamedevelopers/phpFormValidator/actions/workflows/php.yml/badge.svg )] ( https://github.com/tamedevelopers/phpFormValidator/actions )
7- [ ![ Code Coverage] ( https://codecov.io/gh/peterson/php-form- validator/branch/2.2.x/graph/badge.svg )] ( https://codecov.io/gh/peterson/php-form- validator/branch/3.2.2.x )
7+ [ ![ Code Coverage] ( https://codecov.io/gh/peterson/validator/branch/2.2.x/graph/badge.svg )] ( https://codecov.io/gh/peterson/validator/branch/3.2.2.x )
88
99## Documentation
1010
@@ -60,7 +60,7 @@ Prior to installing `ultimate-uploader` get the [Composer](https://getcomposer.o
6060** Step 1** — update your ` composer.json ` :
6161``` composer.json
6262"require" : {
63- "peterson/php-form- validator" : " ^3.3.4 "
63+ "peterson/validator" : " ^3.3.5 "
6464}
6565```
6666
@@ -71,7 +71,7 @@ composer update
7171
7272** Or composer require** :
7373```
74- composer require peterson/php-form- validator
74+ composer require peterson/validator
7575```
7676
7777## Instantiate
@@ -100,7 +100,7 @@ $form = new UltimateValidator\UltimateValidator($data);
100100
101101- ** Example 3** ` Helpers Function `
102102```
103- $form = opForm ();
103+ $form = form ();
104104```
105105
106106## Laravel Support
@@ -112,7 +112,7 @@ public function save(Request $request){
112112
113113 $form = new UltimateValidator();
114114 or
115- $form = opForm ();
115+ $form = form ();
116116}
117117```
118118
@@ -136,7 +136,7 @@ $form->post()->submit([
136136
137137## Global Configuration
138138- Helpers available to assist on easy configuration
139- - ` Config_opForm ()`
139+ - ` config_form ()`
140140
141141| Array Keys | Description |
142142| -------------| -----------------------------------------|
@@ -145,7 +145,7 @@ $form->post()->submit([
145145| csrf_token | Boolean ` true\|false ` Default ` true ` |
146146
147147```
148- Config_opForm ([
148+ config_form ([
149149 'request' => 'POST',
150150 'error_type' => true,
151151 'csrf_token' => true,
@@ -155,7 +155,7 @@ Config_opForm([
155155## Csrf
156156- Implementing ` Csrf ` (Cross-Site Request Forgery)
157157 - By default the form requires all request to have a token attached.
158- - You can disable the usage with the ` Config_opForm ()` Helper
158+ - You can disable the usage with the ` config_form ()` Helper
159159
160160
161161### Csrf Form Input
@@ -226,7 +226,7 @@ $form->token(true)->submit([
226226### POST
227227- You can call separately or Call Before any other method, if intend to use.
228228 - This will set the Form Request to ` POST `
229- - This will always override the ` Config_opForm ()` settings
229+ - This will always override the ` config_form ()` settings
230230
231231```
232232$form->post()->submit([
@@ -626,7 +626,7 @@ $form->toJson([
626626
627627| function | Description |
628628| ---------------| -----------------------------------|
629- | opForm () | Return instance of ` (new UltimateValidator) ` class |
629+ | form () | Return instance of ` (new UltimateValidator) ` class |
630630| request() | Return instance of ` (new RequestMethod) ` class |
631631
632632
0 commit comments