2017 © Pedro PelĆ”ez
 

library validation

Validation IČ, RČ

image

trejjam/validation

Validation IČ, RČ

  • Thursday, August 6, 2015
  • by trejjam
  • Repository
  • 1 Watchers
  • 0 Stars
  • 668 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Validation

Validation of user data, (*1)

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

Based on JAK OVĚŘIT PLATNƉ IČ A RODNƉ ČƍSLO, (*2)

Requires Edgedesign ARES, (*3)

Installation

The best way to install Trejjam/Validation is using Composer:, (*4)

$ composer require trejjam/validation:dev-master

Configuration

.neon, (*5)

extensions:
    validation: Trejjam\Validation\DI\ValidationExtension

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

Usage

Presenter:, (*6)

    /**
     * @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)
        */
     }

The Versions

06/08 2015

dev-master

9999999-dev

Validation IČ, RČ

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Trejbal

nette ares

06/08 2015

v0.5

0.5.0.0

Validation IČ, RČ

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Trejbal

nette ares

15/11 2014

v0.4

0.4.0.0

Validation IČ, RČ

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Trejbal

nette ares

13/11 2014

v0.3

0.3.0.0

Validation IČ, RČ

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jan Trejbal

nette ares

01/11 2014

v0.2.1

0.2.1.0

Validation IČ, RČ

  Sources   Download

MIT

The Requires

 

by Jan Trejbal

nette ares