PHPackages                             nella/forms-phone - 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. nella/forms-phone

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

nella/forms-phone
=================

Phone control for Nette Forms.

v1.1.0(11y ago)10905MITPHPPHP &gt;=5.3.1

Since Jan 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/nella/forms-phone)[ Packagist](https://packagist.org/packages/nella/forms-phone)[ Docs](http://doc.nellafw.org/forms/phone)[ RSS](/packages/nella-forms-phone/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (2)Versions (16)Used By (0)

Phone number control for [Nette Framework](http://nette.org)
============================================================

[](#phone-number-control-for-nette-framework)

[![Build Status](https://camo.githubusercontent.com/30bdc5b9cbf5db91d34ee62aa65160d048ab153eaf5b62cd4ca2edf4199c7f7a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e656c6c612f666f726d732d70686f6e652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/nella/forms-phone)[![SensioLabsInsight Status](https://camo.githubusercontent.com/94ea4598f75f8b89b5f76ae48ef5c7a0b676a86f028c3a9334c19330915aaea7/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f38373539393031312d313064642d343237632d393436612d3533383366383866356438642e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/87599011-10dd-427c-946a-5383f88f5d8d)[![Latest Stable Version](https://camo.githubusercontent.com/ce9eeee8e963402c05077cbcee9c1b166ff4665b57d2ba83e1c08e97a3ada790/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e656c6c612f666f726d732d70686f6e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nella/forms-phone)[![Composer Downloads](https://camo.githubusercontent.com/c6bc1a8a500edfdedff146bbe9b8d933f0b9ef42a665d00f721e9d3261aca40e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e656c6c612f666f726d732d70686f6e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nella/forms-phone)[![Dependency Status](https://camo.githubusercontent.com/5152b4e597b8cfa2562683d8970911693401ec3d9aeeba9d568115a27d77944f/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f757365722f70726f6a656374732f3534363761343532663861346165323133333030303236652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/5467a452f8a4ae213300026e)[![HHVM Status](https://camo.githubusercontent.com/ecf6855ef2fa5173d2216623d1eb806d2d0c27855380a077da8264ab5b1b823c/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f6e656c6c612f666f726d732d70686f6e652e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/nella/forms-phone)

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

[](#installation)

```
composer require nella/forms-phone

```

Usage
-----

[](#usage)

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

// or

\Nella\Forms\Phone\PhoneNumberInput::register();
$form->addPhone('phone', 'Phone');

// Optional phone number validation
$form['phone']
	->addCondition(\Nette\Application\UI\Form::FILLED)
		->addRule([$form['phone'], 'validatePhoneNumber'], 'Phone number is invalid');

// Optional phone number default prefix
$control = $form->addPhone('phone', 'Phone');
$control->setDefaultPrefix('+420');
```

Manual rendering
----------------

[](#manual-rendering)

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

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

14

Last Release

4237d ago

Major Versions

v0.9.5 → v1.0.02014-05-13

v0.9.7 → v1.0.22014-06-19

v0.9.8 → v1.0.32014-08-12

v0.9.9 → v1.0.42014-10-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/112567?v=4)[Patrik Votoček](/maintainers/vrtak-cz)[@Vrtak-CZ](https://github.com/Vrtak-CZ)

---

Top Contributors

[![Vrtak-CZ](https://avatars.githubusercontent.com/u/112567?v=4)](https://github.com/Vrtak-CZ "Vrtak-CZ (37 commits)")

---

Tags

nettephonecontrolinputForms

### Embed Badge

![Health badge](/badges/nella-forms-phone/health.svg)

```
[![Health](https://phpackages.com/badges/nella-forms-phone/health.svg)](https://phpackages.com/packages/nella-forms-phone)
```

###  Alternatives

[nette/schema

📐 Nette Schema: validating data structures against a given Schema.

1.0k358.6M167](/packages/nette-schema)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k38.3M138](/packages/propaganistas-laravel-phone)[nette/forms

📝 Nette Forms: generating, validating and processing secure forms in PHP. Handy API, fully customizable, server &amp; client side validation and mature design.

52913.5M483](/packages/nette-forms)[nette/application

🏆 Nette Application: a full-stack component-based MVC kernel for PHP that helps you write powerful and modern web applications. Write less, have cleaner code and your work will bring you joy.

44815.8M1.1k](/packages/nette-application)[uestla/recaptcha-control

reCAPTCHA control for Nette Framework forms

26576.8k1](/packages/uestla-recaptcha-control)[contributte/forms-bootstrap

Nette extension for Bootstrap forms

211.1M4](/packages/contributte-forms-bootstrap)

PHPackages © 2026

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