PHPackages                             dave-arg/zod-php - 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. dave-arg/zod-php

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

dave-arg/zod-php
================

v1.0.2(1y ago)1661PHP

Since Oct 16Pushed 1y agoCompare

[ Source](https://github.com/DaveARG/zod-php)[ Packagist](https://packagist.org/packages/dave-arg/zod-php)[ RSS](/packages/dave-arg-zod-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Zod-PHP
=======

[](#zod-php)

A [Zod](https://github.com/colinhacks/zod)-like implementation in PHP, inspired by [Laravel](https://github.com/laravel/framework/)'s code standards.

Installation:
-------------

[](#installation)

```
composer require dave-arg/zod-php
```

Usage:
------

[](#usage)

The usage is pretty simple &amp; straightforward, and is very similar to the original Zod library:

```
use DaveARG\Zod\Zod as Z;

// Create the schema.
$schema = Z::object([
    'name' => Z::string()->min(3)->max(15),
    'age' => Z::number()->min(0),
    'address' => Z::object([
        'city' => Z::string(),
        'street' => Z::string(),
    ]),
]);

// Validate the data.
$parsed = $schema->parse([
    'name' => 'John Doe',
    'age' => 20,
    'address' => [
        'city' => 'New York',
        'street' => 'Wall Street',
    ],
]);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

3

Last Release

571d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/652e47ef033dc37c59eba1ac434da32eeb880fb523098cd570800ba395a9acd8?d=identicon)[DaveARG](/maintainers/DaveARG)

---

Top Contributors

[![StyleShit](https://avatars.githubusercontent.com/u/32631382?v=4)](https://github.com/StyleShit "StyleShit (13 commits)")[![DaveARG](https://avatars.githubusercontent.com/u/97988522?v=4)](https://github.com/DaveARG "DaveARG (7 commits)")

### Embed Badge

![Health badge](/badges/dave-arg-zod-php/health.svg)

```
[![Health](https://phpackages.com/badges/dave-arg-zod-php/health.svg)](https://phpackages.com/packages/dave-arg-zod-php)
```

###  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)
