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

0544↓50%PHP

Since Jun 1Pushed 1y 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 1mo ago

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

Maintenance26

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

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

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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