PHPackages                             gsols/validate - 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. gsols/validate

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

gsols/validate
==============

PHP Protobuf implementation for protoc-gen-validate

0.1.1(2y ago)02.5k[1 PRs](https://github.com/gsols/validate/pulls)2Apache-2.0PHP ^7|^8

Since Dec 9Pushed 2y agoCompare

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

READMEChangelog (2)Dependencies (1)Versions (5)Used By (2)

PHP Protobuf Implementation for protoc-gen-validate
===================================================

[](#php-protobuf-implementation-for-protoc-gen-validate)

This is a PHP implementation for protoc-gen-validate. It provides validation rules for protobuf messages. This is only the compiled version of the PHP files. The source files can be found at [bufbuild/protoc-gen-validate](https://github.com/bufbuild/protoc-gen-validate)

Note
----

[](#note)

This is not an official implementation. It is only a compiled version of the PHP files from the official repository. And since the official repository was made using proto2 syntax, this implementation has removed the following to make it compatible with proto3 syntax.

This is intended for internal use only. If you want to use this, please use it at your own risk. This package is not maintained and will not be updated.

- `default` field option
    - When using proto3 syntax, the `default` field option is not allowed and was removed from the following rules: `StringRules` field `strict`. The default value was `true`.

Requirements
------------

[](#requirements)

- PHP 7 or 8
- Google Common Protos 4.5

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

[](#installation)

Use composer to install the dependencies.

```
composer install
```

Usage
-----

[](#usage)

Include the necessary classes from the src/Validate and src/GPBMetadata directories in your PHP files to use the validation rules.

License
-------

[](#license)

This project is licensed under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

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

892d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98437998082615fff5176b475b7f759b88d1a48574c4d835bd7ed510083b163d?d=identicon)[nickaguilarh](/maintainers/nickaguilarh)

---

Top Contributors

[![nickaguilarh](https://avatars.githubusercontent.com/u/7452380?v=4)](https://github.com/nickaguilarh "nickaguilarh (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

phpgRPCproto

### Embed Badge

![Health badge](/badges/gsols-validate/health.svg)

```
[![Health](https://phpackages.com/badges/gsols-validate/health.svg)](https://phpackages.com/packages/gsols-validate)
```

PHPackages © 2026

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