承接 previewtechs/http-access-logger 相关项目开发

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

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

previewtechs/http-access-logger

Composer 安装命令:

composer require previewtechs/http-access-logger

包简介

HTTP access logs saved to any storage provider.

README 文档

README

Simple HTTP Access Logger

Simple but powerful HTTP access logger and usage monitoring. Mostly it will help to monitor API usage and anytime you can add your database storage to save all the usages.

Currently Google DataStore has been added as a Storage Provider. Everybody welcome to add more provider to it.

License Build Status Code Coverage Code Quality

Usage

Install with composer require previewtechs/http-access-logger

<?php
require "vendor/autoload.php";

//Setup your Google Datastore Gateway
$gateway = new \GDS\Gateway\RESTv1('my-google-cloud-project-name');
$dataStore = new \GDS\Store('my-kind-name', $gateway);

//Initialize storage provider
$storage = new \Previewtechs\HTTP\AccessLogger\Providers\GoogleDataStore($dataStore);

/**
 * Now start recording your HTTP access log by providign your storage provider and Psr/http-message ServerRequestInterface
 * compatible $request object
 */
$log = new \Previewtechs\HTTP\AccessLogger\AccessLog($request, $storage);
$log->record();

For bug and issues please open an issue.

Contribution

Keep it simple but we can add more and more Storage provider like (MySQL, MongoDB and other storage);

To build a new provider please see src/Providers/GoogleDataStore.php

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固