PHPackages                             hasankaya/json-validater - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hasankaya/json-validater

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hasankaya/json-validater
========================

json validater in php

v1.0.1(3y ago)011mitPHP

Since Nov 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/HasanKaya53/json-validater)[ Packagist](https://packagist.org/packages/hasankaya/json-validater)[ RSS](/packages/hasankaya-json-validater/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

 What Can It Do ?
------------------

[](#-what-can-it-do--)

- Comparing the length of data in json.
- Comparing types of data in json
- Comparing the number of elements in two different jsons.
- checking for elements inside two different jsons.

 Features
----------

[](#-features-)

- Work continues for the embedded json generation type in the system.
-

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

[](#-installation-)

 You can install the latest version of JSON validator with the following command:

` composer require hasankaya/json-validater ` Documentation
---------------

[](#-documentation-)

 First you have to specify a json format type to use in the comparison.

 **For Example:**

` $pageJson = '{    "AppName": "varchar(15)",    "Code": ["varchar(60)","1","4"],    "Adres": ["varchar(30)","0","2"],    "Number": "int"}';` The definition of varchar(15) used in the AppName parameter indicates that it will be of type varchar only and up to 15 characters long.

 The array created at the Code parameter indicates that there will be a maximum of 60 characters of type varchar(60). The second value in the array means that this field will have to be in the next json. .Also, the fact that the third value in the array is 1 indicates that the value in the next json will be at least 1 character..

 For Example:

`require_once('xml.class.php');use Lucky\jsonChecker as jsonChecker;$jsonController = new jsonChecker;$input = array("AppName"=>"Test","Code"=>"1234","Adres"=>"111","Number"=>"1234a");$pageJson = '{"AppName": "varchar(15)","Code": ["varchar(60)","1","4"],"Adres": ["varchar(30)","1","2"],"Number": "int"}';$input =  $jsonController->checkJsonData($pageJson,json_encode($input));if(isset($input["Status"]) && $input["Status"] == "false"){echo json_encode($input);exit;}$input = $jsonController->checkArrayIsset($pageJson,$input);echo json_encode($input);`

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1271d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef976a6214e5a822744152df8992cc1c503032c4b019947d5e5bcad056d5afd1?d=identicon)[hasankaya](/maintainers/hasankaya)

---

Top Contributors

[![HasanKaya53](https://avatars.githubusercontent.com/u/35229371?v=4)](https://github.com/HasanKaya53 "HasanKaya53 (7 commits)")

### Embed Badge

![Health badge](/badges/hasankaya-json-validater/health.svg)

```
[![Health](https://phpackages.com/badges/hasankaya-json-validater/health.svg)](https://phpackages.com/packages/hasankaya-json-validater)
```

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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