Download the PHP package nepada/birth-number-input without Composer
On this page you can find all versions of the php package nepada/birth-number-input. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nepada/birth-number-input
More information about nepada/birth-number-input
Files in nepada/birth-number-input
Package birth-number-input
Short Description Czech birth number form input for Nette forms.
License BSD-3-Clause
Informations about the package birth-number-input
Czech birth number form input
Installation
Via Composer:
Option A: install form container extension method via DI extension
It will register extension method addBirthNumber($name, $label = null): BirthNumberInput
to Nette\Forms\Container
.
Option B: use trait in your base form/container class
You can also use BirthNumberInputMixin
trait in your base form/container class to add method addBirthNumber($name, $label = null): BirthNumberInput
.
Example:
Usage
BirthNumberInput
is form control that uses birth number value object to represent its value (see nepada/birth-number for further details).
It automatically validates the user input and getValue()
method always returns BirthNumber
instance, or null
if the input is not filled.
Client side validation
Using precompiled bundle
Using precompiled bundles is the quick'n'dirty way of getting client side validation to work.
Building your own bundle
It is highly recommended to install the client side package via nmp and compile your own bundle.
Here is an example script for initialization of birth number input and Nette forms.
All versions of birth-number-input with dependencies
nepada/birth-number Version ^1.0@dev
nette/utils Version ^3.2@dev || ^4.0@dev
nette/forms Version ^3.1@dev