Download the PHP package repat/ham-radio without Composer
On this page you can find all versions of the php package repat/ham-radio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download repat/ham-radio
More information about repat/ham-radio
Files in repat/ham-radio
Download repat/ham-radio
More information about repat/ham-radio
Files in repat/ham-radio
Vendor repat
Package ham-radio
Short Description Amateur Radio Call Signs Verification
License MIT
Homepage https://repat.de
Package ham-radio
Short Description Amateur Radio Call Signs Verification
License MIT
Homepage https://repat.de
Please rate this library. Is it a good library?
Informations about the package ham-radio
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
$ composer require repat/ham-radio
Example
Supported Countries
- US
Contribute
- Fork the project
- Create a new class that
extends Helper
- Name the class after the ISO3166 country code
- Add a function
regex() : string
that returns a regular expression to validate the call sign format. - Add a function
verifyCallSign(string $callSign) : array
. With$this->client
you get aGuzzleHttp
client for making API calls. I also pulled inrepat/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 byjson_decode($response, true)
.
License
- MIT, see LICENSE
Version
- Version 0.1
Contact
repat
- Homepage: https://repat.de
- e-mail: [email protected]
- Twitter: @repat123
- KN6DZC
All versions of ham-radio with dependencies
PHP Build Version
Package Version
The package repat/ham-radio contains the following files
Loading the files please wait ....