arnulfosolis/apihistogram 问题修复 & 功能扩展

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

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

arnulfosolis/apihistogram

Composer 安装命令:

composer require arnulfosolis/apihistogram

包简介

ApiHistogram is a Symphony Bundle that allows you to create historical data from your web services

README 文档

README

ApiHistogram aims to create a history of your API responses and stores the response in your database, so you can analyse variable data coming from any web service that does not offer historical data, or to create your own historical data based on a third party service.

Installation

  • First add ApiHistogram to your project with composer.
    • Composer: composer require arnulfosolis/apihistogram @dev
  • Then, if needed, call composer install or composer update to get all the dependencies set.
  • Make sure that the ApiHistogramBundle is registered in the AppKernel.
    • All ApiHistogram Classes lay under:
      • Namespace: ApiHistogram\.
  • Fill the needed configuration in the your target's config.yml file.
    • See README_CONFIG.md file under /ApiHistogram directory
  • Make sure you set your database's configuration in the parameter's file.
  • You're done!

Description

ApiHistogram allows developers to query API data and save the response data automatically while trying to be the most flexible as possible. ApiHistogram focuses on performance, so all calls are asynchronous.

This allows to have "LIVE" data coming every time the command line tool is called php app/console api-histogram:update

Usage

  • To use the application, make sure you define your sitesin the configuration file config.yml.
    • Recommendation: Use a separate file to define your calls.
  • And every time you call the command php app/console api-histogram:update ApiHistogram will append the new data to the database.

Future development

  • The Api calls are now being used with a simple GET HTTP method. As this is a good approach for a REST-full approach, no extra headers are being placed in the request. So next step will be to add optional headers to the HTTP Request.
  • For now, all data is being saved in one schema in one connection, in future releases using different schemas for different connections for individual calls will be possible.
  • New ideas coming soon!

Contact

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固