repat/ham-radio 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

repat/ham-radio

Composer 安装命令:

composer require repat/ham-radio

包简介

Amateur Radio Call Signs Verification

README 文档

README

Latest Version on Packagist Total Downloads

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

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

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

Supported Countries

  • US

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

Version

  • Version 0.1

Contact

repat

Flattr this git repo

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固