This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
This package is abandoned and no longer maintained. No replacement package was suggested.

Phone control for Nette Forms.

v1.1.0 2014-11-15 19:26 UTC

This package is auto-updated.

Last update: 2020-12-06 16:18:48 UTC


Build Status SensioLabsInsight Status Latest Stable Version Composer Downloads Dependency Status HHVM Status


composer require nella/forms-phone


$form = new \Nette\Forms\Form;
$form->addComponent(new \Nella\Forms\Phone\PhoneNumberInput('Phone'), 'phone');

// or

$form->addPhone('phone', 'Phone');

// Optional phone number validation
		->addRule([$form['phone'], 'validatePhoneNumber'], 'Phone number is invalid');
// Optional phone number default prefix
$control = $form->addPhone('phone', 'Phone');

Manual rendering

{form myForm}
	{label phone /}
	{input phone:prefix}
	{input phone:number}


Phone number control for Nette Framework is licensed under the MIT License - see the LICENSE file for details