PHPackages                             trejjam/validation - 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. trejjam/validation

ActiveLibrary

trejjam/validation
==================

Validation IČ, RČ

v0.5(10y ago)0681MITPHPPHP &gt;=5.4

Since Nov 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/trejjam/Validation)[ Packagist](https://packagist.org/packages/trejjam/validation)[ RSS](/packages/trejjam-validation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Validation
==========

[](#validation)

Validation of user data

- offline IČ, RČ
- online IČ over ARES, cached by Nette/Cache

Based on [JAK OVĚŘIT PLATNÉ IČ A RODNÉ ČÍSLO](http://phpfashion.com/jak-overit-platne-ic-a-rodne-cislo)

Requires [Edgedesign ARES](https://github.com/EdgedesignCZ/ares)

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

[](#installation)

The best way to install Trejjam/Validation is using [Composer](http://getcomposer.org/):

```
$ composer require trejjam/validation:dev-master
```

Configuration
-------------

[](#configuration)

.neon

```
extensions:
	validation: Trejjam\Validation\DI\ValidationExtension

validation:
	cache:
		use: true #disable cache
		name: ares #cache storage
		timeout: 60 minutes #cache expire
	debugger: true
```

Usage
-----

[](#usage)

Presenter:

```
	/**
	 * @var \Trejjam\Validation @inject
	 */
	 public $validation;

	 function renderDefault() {

	    //offline check
	    $rcValid=$this->validation->rc("780123/3540"); //problematic RČ

	    $icValid=$this->validation->ic("25596641"); //problematic IČ

	    //online check
	    $icValidOnline = $this->validation->aresIc("27604977"); //google IČ

        dump($rcValid);
        /*
        dump boolean
            TRUE
        */

        dump($icValid);
        /*
        dump boolean
            TRUE
        */

        dump($icValidOnline);
        /*
        dump stdClass
	        ico => "27604977" (8)
	        dic => "CZ27604977" (10)
	        firma => "Google Czech Republic, s.r.o." (29)
	        ulice => "Stroupežnického" (17)
	        cisloOrientacni => "17" (2)
	        cisloPopisne => "3191" (4)
	        cisloMesto => "Praha" (5)
	        castObce => "Smíchov" (8)
	        psc => "15000" (5)
        */
	 }
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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 ~92 days

Total

4

Last Release

3938d ago

PHP version history (2 changes)v0.2.1PHP &gt;=5.3.1

v0.5PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/497b0b5c3df7d9a3a4349ccd81b47db5b6027fc7d49510a04265dd966d01f846?d=identicon)[trejjam](/maintainers/trejjam)

---

Top Contributors

[![trejjam](https://avatars.githubusercontent.com/u/3594540?v=4)](https://github.com/trejjam "trejjam (17 commits)")

---

Tags

netteares

### Embed Badge

![Health badge](/badges/trejjam-validation/health.svg)

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

###  Alternatives

[vojtech-dobes/nette-ajax-history

Adds History API support for Nette Framework.

30179.4k2](/packages/vojtech-dobes-nette-ajax-history)[majkl578/nette-identity-doctrine

Integration of entities implementing IIdentity in Nette 2

28119.1k](/packages/majkl578-nette-identity-doctrine)[vojtech-dobes/nette-forms-gpspicker

Google Maps based picker of coordinates for Nette Framework.

2456.6k](/packages/vojtech-dobes-nette-forms-gpspicker)[flame/modules

Nette modules on the Steroids

1361.6k3](/packages/flame-modules)

PHPackages © 2026

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