Skip to content

Commit

Permalink
No changes - update
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrick Peter committed Oct 4, 2023
1 parent 6ef40ea commit 291650e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 220 deletions.
26 changes: 7 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,10 @@

- `>= php 8.0+`

## Installation
## Installation

Prior to installing `ultimate-uploader` get the [Composer](https://getcomposer.org) dependency manager for PHP because it'll simplify installation.
Prior to installing `support package` get the [Composer](https://getcomposer.org) dependency manager for PHP because it'll simplify installation.

**Step 1** — update your `composer.json`:
```composer.json
"require": {
"tamedevelopers/validator": "^4.2.1"
}
```

**Step 2** — run [Composer](https://getcomposer.org):
```update
composer update
```

**Or composer require**:
```
composer require tamedevelopers/validator
```
Expand All @@ -89,14 +76,15 @@ use \Tamedevelopers\Validator\Validator;
$form = new Validator();
```

- **Example 2**
- **Example 2**`You can also pass in any data type` and this will be taken and pass to the `attribute` property.
```
$data = [
$form = new Tamedevelopers\Validator\Validator([
'user' => 'F. Pete',
'marital' => 'Single',
];
]);
$form = new Tamedevelopers\Validator\Validator($data);
// this will return the data you pass
$form->attribute
```

- or -- `Helpers Function`
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"require": {
"php": ">=8.0",
"tamedevelopers/support": "^1.0.2"
"tamedevelopers/support": "^1.0.6"
},
"autoload": {
"files": [
Expand Down
198 changes: 0 additions & 198 deletions src/Collections/Collection.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Methods/ValidatorMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Tamedevelopers\Validator\Methods;

use Tamedevelopers\Validator\Validator;
use Tamedevelopers\Validator\Collections\Collection;
use Tamedevelopers\Support\Collections\Collection;

class ValidatorMethod {

Expand Down
2 changes: 1 addition & 1 deletion src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace Tamedevelopers\Validator;

use Tamedevelopers\Support\Collections\Collection;
use Tamedevelopers\Validator\Traits\PropertyTrait;
use Tamedevelopers\Validator\Collections\Collection;
use Tamedevelopers\Validator\Traits\ValidatorTrait;
use Tamedevelopers\Validator\Methods\ValidatorMethod;
use Tamedevelopers\Validator\Traits\SubmitSuccessTrait;
Expand Down

0 comments on commit 291650e

Please sign in to comment.