PHPackages                             potatopowered/phone-helper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. potatopowered/phone-helper

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

potatopowered/phone-helper
==========================

A CakePHP 3.x telephone number formatting plugin.

v2.0.0(9y ago)812.5kMITPHPPHP &gt;=5.4.16

Since Feb 20Pushed 9y ago2 watchersCompare

[ Source](https://github.com/PotatoPowered/phone-helper)[ Packagist](https://packagist.org/packages/potatopowered/phone-helper)[ RSS](/packages/potatopowered-phone-helper/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Phone Helper
============

[](#phone-helper)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Travis](https://camo.githubusercontent.com/9250b6a6db92c1cc21b7404d8400d1be2182084cd6f84bc29e38620595180914/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f506f7461746f506f77657265642f70686f6e652d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/PotatoPowered/phone-helper/builds)[![Codecov](https://camo.githubusercontent.com/b7c4629f4af20c142511f0eca4055ac50abe70687c23fb4078e6765f5f6860b8/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f506f7461746f506f77657265642f70686f6e652d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/PotatoPowered/phone-helper)[![Scrutinizer](https://camo.githubusercontent.com/fe3f3a8e7edc87e393f48bc22384ba323ddd8b332e1a0f32812e003699ad377f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f506f7461746f506f77657265642f70686f6e652d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/PotatoPowered/phone-helper/)[![Packagist](https://camo.githubusercontent.com/076cf9d3f0c2ad61d24167b0d5dd9eb25734fcec8fc4edab6667375d04b79a2e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f7461746f706f77657265642f70686f6e652d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/potatopowered/phone-helper)

A phone number formatting helper for CakePHP 3.x

Description
-----------

[](#description)

The phone number helper is designed to help format phone numbers of all types into tel links or just a prettified format. Please send a pull request if you do not see your phone number format included.

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

[](#installation)

```
composer require potatopowered/phone-helper

```

Add the helper to the public helpers variable of the controller you need it on or in the AppController to have it accessible in all controllers.

```
public $helpers = [
    'Phone' => [
        'className' => 'PhoneHelper.Phone'
    ]
];

```

Usage
-----

[](#usage)

To use the phone number formatter you must have the helper loaded in your controller. Once loaded in the controller as shown above you can call the number helper's `format($number)`function.

```
// (123) 456-789
$this->Phone->format('1234567890');

// 456-7890
$this->Phone->format('4567890');

```

You can also add telephone links in RFC3966 format using the 'link' method

```
// 123-456-7890
$this->Phone->link('123-456-7890');

// Call Us
$this->Phone->link(h('Call Us'), '1234567890');

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3556d ago

Major Versions

v1.0.0 → v2.0.02016-09-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed148c9a48c42d2cd8d439c091444df47be2ad744bab37376d4b17da07ef668c?d=identicon)[potatopowered](/maintainers/potatopowered)

![](https://avatars.githubusercontent.com/u/1271668?v=4)[Blake Sutton](/maintainers/KaffineAddict)[@kaffineaddict](https://github.com/kaffineaddict)

---

Top Contributors

[![kaffineaddict](https://avatars.githubusercontent.com/u/1271668?v=4)](https://github.com/kaffineaddict "kaffineaddict (15 commits)")

---

Tags

helperphonenumbertelephone

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/potatopowered-phone-helper/health.svg)

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

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

333972.2k49](/packages/dereuromark-cakephp-tools)[rynpsc/craft-phone-number

International phone number field.

2267.4k](/packages/rynpsc-craft-phone-number)[dereuromark/cakephp-calendar

A CakePHP plugin to easily create calendars.

1674.7k1](/packages/dereuromark-cakephp-calendar)[drmonkeyninja/cakephp-social-share

CakePHP helper for creating social share/bookmark links

31103.5k](/packages/drmonkeyninja-cakephp-social-share)

PHPackages © 2026

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