PHPackages                             nocartorio/array-validation-by-json - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. nocartorio/array-validation-by-json

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

nocartorio/array-validation-by-json
===================================

Array validation by JSON file with rules for Laravel

0627↓20%PHP

Since Jun 1Pushed 2y agoCompare

[ Source](https://github.com/nocartorio/array-validation-by-json)[ Packagist](https://packagist.org/packages/nocartorio/array-validation-by-json)[ RSS](/packages/nocartorio-array-validation-by-json/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Validate Data For Import
========================

[](#validate-data-for-import)

This package is used to validate data exported to import on nocartorio.com from JSON files

Installation
------------

[](#installation)

Run the following command from you terminal:

```
composer require "nocartorio/validate-data-for-import"
```

or add this to require section in your composer.json file:

```
"nocartorio/validate-data-for-import"

```

then run `composer update`

Publishing config file

```
set on config file generated the url´s with json rules for validation
```

Example of JSON files rules

```
{
"field-name": "string|nullable",
"other-field-name": "nullable|file,next-file-name-with-rules",
}

```

At the second casa, if rule is file you must set the next argument after comma, other JSON files with some structure for validation

```
php artisan vendor:publish
```

Usage
-----

[](#usage)

All allowed arrays for validation is: 'array-1', 'array-2', 'array-3'

```
$validated = new \NoCartorio\ArrayValidationByJson\Validator('array-1');
```

$validated could be true or false

Author
------

[](#author)

Douglas Resende:

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 82.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/34d28941a36733330db0c19c87dee6d9e6c84c55487398d6a23870fdc98a9651?d=identicon)[douglasresendemaciel](/maintainers/douglasresendemaciel)

---

Top Contributors

[![douglasresendemaciel](https://avatars.githubusercontent.com/u/11336192?v=4)](https://github.com/douglasresendemaciel "douglasresendemaciel (14 commits)")[![spelcaster](https://avatars.githubusercontent.com/u/3278419?v=4)](https://github.com/spelcaster "spelcaster (2 commits)")[![nocartorio-douglas-resende](https://avatars.githubusercontent.com/u/204616479?v=4)](https://github.com/nocartorio-douglas-resende "nocartorio-douglas-resende (1 commits)")

### Embed Badge

![Health badge](/badges/nocartorio-array-validation-by-json/health.svg)

```
[![Health](https://phpackages.com/badges/nocartorio-array-validation-by-json/health.svg)](https://phpackages.com/packages/nocartorio-array-validation-by-json)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
