承接 requestlab/xiti-analytics 相关项目开发

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

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

requestlab/xiti-analytics

Composer 安装命令:

composer require requestlab/xiti-analytics

包简介

Xiti server-to-server interactions with ATInternet Xiti analytics REST API v2

README 文档

README

Build Status

The RequestLab Xiti Analytics library provides a way to use the AT Internet Analytics Data Query API.

It's inspired by the Wid'op Google Analytics library

Documentation

Installation

To install the RequestLab Xiti Analytics library, you will need Composer. It's a PHP 5.3+ dependency manager which allows you to declare the dependent libraries your project needs and it will install & autoload them for you.

Set up Composer

Composer comes with a simple phar file. To easily access it from anywhere on your system, you can execute:

$ curl -s https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

Define dependencies

Create a composer.json file at the root directory of your project and simply require the requestlab/xiti-analytics package:

{
    "require": {
        "requestlab/xiti-analytics": "*"
    }
}

Install dependencies

Now, you have define your dependencies, you can install them:

$ composer install

Composer will automatically download your dependencies & create an autoload file in the vendor directory.

Autoload

So easy, you just have to require the generated autoload file and you are already ready to play:

<?php

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

use RequestLab\XitiAnalytics;

// ...
?>

The RequestLab Xiti Analytics library follows the PSR-0 Standard. If you prefer install it manually, it can be autoload by any convenient autoloader.

Usage

Query

First, in order to request the ATInternet Analytics Query service, simply create a request and configure it according to your needs:

<?php

use RequestLab\XitiAnalytics\Query;

$query = new Query();

$query->setStartDate(new \DateTime('-1 Day'));
$query->setEndDate(new \DateTime('-1 Day'));

$query->setSpace(99999);
$query->setColumns(array('m_visits', 'm_page_loads'));
$query->setSort(array('-m_visits'));

?>

Client

A client allows you to request the service with your login and password.

<?php

use RequestLab\XitiAnalytics\Client;

$client = new Client();
$client->setLogin('Login');
$client->setPassword('Password');

?>

Service

<?php

use RequestLab\XitiAnalytics\Service;

$service = new Service($client);
$client->query($query);

?>

Response

The response is a RequestLab\XitiAnalytics\Response object which wraps all available informations:

<?php

$columns = $response->getColumns();
$rows    = $response->getRows();
$totals  = $response->getTotals();

?>

Testing

The library is fully unit tested by PHPUnit. To execute the test suite, check the travis configuration.

Contribute

The library is open source, propose a PR!

License

The RequestLab Xiti Analytics library is under the MIT license. For the full copyright and license information, please read the LICENSE file that was distributed with this

source code.

requestlab/xiti-analytics 适用场景与选型建议

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

它主要适用于以下技术方向: 「analytics」 「server」 「xiti」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

围绕 requestlab/xiti-analytics 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-07