2017 © Pedro Peláez
 

library http-access-logger

HTTP access logs saved to any storage provider.

image

previewtechs/http-access-logger

HTTP access logs saved to any storage provider.

  • Monday, April 17, 2017
  • by shahariaazam
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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., (*1)

Currently Google DataStore has been added as a Storage Provider. Everybody welcome to add more provider to it., (*2)

License Build Status Code Coverage Code Quality, (*3)

Usage

Install with composer require previewtechs/http-access-logger, (*4)

<?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., (*5)

Contribution

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

To build a new provider please see src/Providers/GoogleDataStore.php, (*7)

The Versions

17/04 2017

dev-master

9999999-dev http://github.com/PreviewTechnologies

HTTP access logs saved to any storage provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

log http-access

17/04 2017

v1.0

1.0.0.0 http://github.com/PreviewTechnologies

HTTP access logs saved to any storage provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

log http-access