Download the PHP package abbe98/request-logging without Composer

On this page you can find all versions of the php package abbe98/request-logging. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package request-logging

request-logging

Request logging library in PHP

Installation

Include rqeuest_logging.php or add the composer package.

Define the database configuration:

define('HOST', '127.0.0.1'); // the IP of the database
define('DBNAME', 'reqlog_test'); // the database name to be used
define('USERNAME', 'root'); // the username to be used with the database
define('PASSWORD', ''); // the password to be used with the username

And run the following SQL in the database you defined above:

CREATE TABLE IF NOT EXISTS `requests` (
`id` int(255) NOT NULL,
  `ip` varchar(45) COLLATE utf8mb4_bin NOT NULL,
  `http_forwared` int(45) NOT NULL,
  `browser_ua` varchar(600) COLLATE utf8mb4_bin NOT NULL,
  `timestamp` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
  `tag` varchar(700) COLLATE utf8mb4_bin NOT NULL
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=27 ;

ALTER TABLE `requests`
 ADD PRIMARY KEY (`id`);

ALTER TABLE `requests`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=27;

Usage

Log the current request(IP, HTTP forwarded, Browser User Agent and Time Samp). The $tagString is optional:

$log = new ReqLog($tagString);

Get the number of visits from the current computer/browser(by adding $tagString you get the tag specific data):

$log->num_visits();

Get the number of visits from the current computer($tagString is optional):

$log->num_ip_visits();

Get the percent that the current browser version has($tagString is not supported):

$log->this_browser_percent();

Licensed under MIT.


All versions of request-logging with dependencies

PHP Build Version
Package Version
Requires php Version >=5.0.0
abbe98/simple-pdo Version 1.1.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package abbe98/request-logging contains the following files

Loading the files please wait ....