承接 oscarafdev/fonoapi 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

oscarafdev/fonoapi

Composer 安装命令:

composer require oscarafdev/fonoapi

包简介

FonoApi - Mobile Device Description API

README 文档

README

GitHub stars GitHub issues GitHub license

FonoApi - Mobile Device Description Api

  • Database Updated : 21st September 2016
  • Database Updated (New Devices Added) : 27th November 2016
  • Database Updated (Old Device Data Updated) : 27th November 2016
  • Database Updated (New Devices Added) : 4th January 2017
  • Database Updated (Old Device Data Updated) : 4th January 2017
  • Database Updated (New Devices Added) : 6th February 2017
  • Database Updated (Old Device Data Updated) : 6th February 2017
  • Database Updated (New Devices Added) : 3rd March 2017
  • Database Updated (Old Device Data Updated) : 3rd March 2017
  • Database Updated (New Devices Added) : 5th April 2017
  • Database Updated (Old Device Data Updated) : 5th April 2017
  • Database Updated : 8th May 2017
  • Database Updated : 10th July 2017
  • Database Updated : 10th August 2017
  • Database Updated : 15th September 2017
  • Database Updated : 15th October 2017
  • Database Updated : 17th November 2017
  • Database Updated : 12th December 2017
  • Database Updated : 22th January 2018
  • Database Updated : 23th February 2018
  • Database Updated : 30th April 2018
  • Database Updated : 28th August 2018
  • Database Updated : 29th MARCH 2019

https://fonoapi.freshpixl.com/

This is an API which can provide mobile device descriptions such as model, brand, CPU, GPU, dimensions, release date etc. It might be helpful if you are building a website like GSMAera, Phonearena or something similar. This API contains a database of a mobile device descriptions of Android, iOS and some old phones too.. :D This is the PHP class to communicate with the API. It would be nice if someone can help with other languages though. ;)

Api

API URL: https://fonoapi.freshpixl.com/v1/

Method getdevice (https://fonoapi.freshpixl.com/v1/getdevice)

Available options

  • brand - Pass the Mobile Device Brand (example : "samsung", "htc")
  • device* - Pass nearly relevent mobile device name (example : "i9305", "A8") This might result multiple results at a time.
  • position - When a set of results is returned you can get a specific device by passing the position of your device on the result set. count starts from 0
  • token* - You will need a token to access the Api. no registration, nothing, just grab the key. You can get it here https://fonoapi.freshpixl.com/token/generate
Method getlatest (https://fonoapi.freshpixl.com/v1/getlatest)

Available options

  • brand - It gives the latest you can filter the brand (example : "samsung", "htc")
  • limit - Limit the result count (Max 100)
  • token* - You will need a token to access the Api. no registration, nothing, just grab the key.
    You can get it here https://fonoapi.freshpixl.com/token/generate

Note: the API will return only 100 devices per request

PHP Demo

Install the package in your PHP project:

$ composer require shakee93/fonoapi
<?php
use Shakee93\Fonoapi\FonoApi;

require __DIR__.'/vendor/autoload.php';

$apiKey = "xxxxxxxx"; // get your token key here - https://fonoapi.freshpixl.com
$fonoapi = FonoApi::init($apiKey);

try {
    $res = $fonoapi::getDevice("i9305"); // the device you need to get details here

    foreach ($res as $mobile) {
        if (!empty($mobile->DeviceName)) 	echo "Device : ". $mobile->DeviceName . "<br>";
        if (!empty($mobile->Brand)) 		echo "Brand : ". $mobile->Brand . "<br>";
        if (!empty($mobile->cpu)) 			echo "Cpu : " . $mobile->cpu . "<br>";
        if (!empty($mobile->status)) 		echo "Status : " . $mobile->status . "<br>";
        if (!empty($mobile->dimensions)) 	echo "Dimensions : " . $mobile->dimensions . "<br>";
        if (!empty($mobile->_4g_bands)) 	echo "4g : " .$mobile->_4g_bands . "<br>";
    }
} catch (Exception $e) {
    echo "ERROR : " . $e->getMessage();
}
Curl Example
curl https://fonoapi.freshpixl.com/v1/getdevice -XPOST -H 'Accept: application/json' -d 'token=YOUR_TOKEN_HERE&limit=5&device=A8'
Python

Library is here : https://github.com/jesusperiago/fonoapi

jQuery

Library is here : https://github.com/shakee93/fonoapi/tree/master/fonoapi-js

Nodejs

Library is here : https://github.com/mtrung/fonoapi/tree/master/fonoapi-nodejs
Package is here : https://www.npmjs.com/package/fonoapi-nodejs

Java

Library is here : https://github.com/aafanasev/fonoapi-client

Result Set Structure

Check here : https://github.com/shakee93/fonoapi/blob/master/resultset.md

oscarafdev/fonoapi 适用场景与选型建议

oscarafdev/fonoapi 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 76 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 12 月 25 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 oscarafdev/fonoapi 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 oscarafdev/fonoapi 我们能提供哪些服务?
定制开发 / 二次开发

基于 oscarafdev/fonoapi 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 60
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-25