PHPackages                             repat/ham-radio - 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. repat/ham-radio

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

repat/ham-radio
===============

Amateur Radio Call Signs Verification

0.1(6y ago)06MITPHPPHP &gt;=7.0

Since Aug 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/repat/ham-radio)[ Packagist](https://packagist.org/packages/repat/ham-radio)[ Docs](https://repat.de)[ RSS](/packages/repat-ham-radio/feed)WikiDiscussions master Synced 1mo ago

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

ham-radio
=========

[](#ham-radio)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2b83e12df13ac8961485df449aa027223d1948e3e379bf8a70b652e6477ba7a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72657061742f68616d2d726164696f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/repat/ham-radio)[![Total Downloads](https://camo.githubusercontent.com/2d6daafbcc0e7083410c8318710c40e26099cc45e481b5abb162f84a3f9ac296/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72657061742f68616d2d726164696f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/repat/ham-radio)

**ham-radio** is a library for quickly validating the format of a call sign by the rules of the country and also run a check against the official public database, e.g. by the FCC in the US.

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

[](#installation)

`$ composer require repat/ham-radio`

Example
-------

[](#example)

```
$us = new US;
$us->verifyCallSign('KN6DZC');
// returns: [
//     "Response" => [
//       "Licenses" => [
//         "License" => [
//           "licName" => "...."

$us ->validateCallSign('KN6DZC');
// returns: true
```

Supported Countries
-------------------

[](#supported-countries)

- US

Contribute
----------

[](#contribute)

1. Fork the project
2. Create a new class that `extends Helper`
3. Name the class after the ISO3166 country code
4. Add a function `regex() : string` that returns a regular expression to validate the call sign format.
5. Add a function `verifyCallSign(string $callSign) : array`. With `$this->client` you get a `GuzzleHttp` client for making API calls. I also pulled in `repat/http-constants` for checking HTTP status codes in the response. In case the API returns XML, check out `$this->xml2array()`. A json response could be returned by `json_decode($response, true)`.

License
-------

[](#license)

- MIT, see [LICENSE](https://github.com/repat/ham-radio/blob/master/LICENSE)

Version
-------

[](#version)

- Version 0.1

Contact
-------

[](#contact)

#### repat

[](#repat)

- Homepage:
- e-mail:
- Twitter: [@repat123](https://twitter.com/repat123 "repat123 on twitter")
- KN6DZC

[![Flattr this git repo](https://camo.githubusercontent.com/7e3f46a36526479d701ef7f90a0f8c3ac2fbab3087446e2a9fceed75cd1ab802/687474703a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](https://flattr.com/submit/auto?user_id=repat&url=https://github.com/repat/ham-radio&title=ham-radio&language=&tags=github&category=software)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

2443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/405dab243007488e7e7851422e5864a9312aee36058d60f1e6d623232c4d3131?d=identicon)[repat](/maintainers/repat)

---

Top Contributors

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

---

Tags

validationverificationlookupusaradiohamamateurfcccall sign

### Embed Badge

![Health badge](/badges/repat-ham-radio/health.svg)

```
[![Health](https://phpackages.com/badges/repat-ham-radio/health.svg)](https://phpackages.com/packages/repat-ham-radio)
```

###  Alternatives

[composer/semver

Version comparison library that offers utilities, version constraint parsing and validation.

3.3k489.6M671](/packages/composer-semver)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k148.7M414](/packages/giggsey-libphonenumber-for-php)[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M379](/packages/respect-validation)[propaganistas/laravel-phone

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

3.0k35.7M106](/packages/propaganistas-laravel-phone)[opis/json-schema

Json Schema Validator for PHP

64236.9M184](/packages/opis-json-schema)[giggsey/libphonenumber-for-php-lite

A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber

8412.9M47](/packages/giggsey-libphonenumber-for-php-lite)

PHPackages © 2026

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