Download the PHP package rummykhan/xlog without Composer

On this page you can find all versions of the php package rummykhan/xlog. 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 xlog

X-Log

Latest Stable Version

A PHP/Laravel Package to log all the requests, with the exceptions, country and city. It will help you get insight of your visitors activiy. Built on top of torann/geoip and jenssegers/agent

Installation

Install using composer:

Add Service Providers

Add these two service provider in app/config/app.php:

Publish Configuration

Publish the configuration using command:

Update geoip database

Update geoip database using command:

Add Middleware

Add XLogMiddleWare to your app\Http\Kernel.php as a web middleware group:

Migrate Log Table ( You don't have to migrate if your database is mongodb.)

Migrate Log Table migration:

Configure your application logging behavior

The php artisan vendor:publish will publish Log table migration into migrations folder, geoip.php and xlog.php in config folder of you laravel installation.

Logging Environments

In xlog.php you may specify your igonore_environments as an array, In these environment it will not log any request or response e.g.

Set Database Type

In xlog.php you may specify your db_type as string. Since laravel supported databases (mysql, sqlite, pgsql) behaves differently than laravel not supported databases, For that purpose I'm using a ProxyModel Which switch the Eloquent Mode based on database type. E.g. For any laravel supported database you can leave it blank, For mongodb you can set it to 'mongo'.

Supported database types are (sqlite, mysql, pgsql, mongodb).

DB Connection

In xlog.php you may specify your connection as string. This connection will be used to save the logs. (By default it uses application connection)

Supported database types are (sqlite, mysql, pgsql, mongodb).

DB Table

In xlog.php you may specify the table_name for you logs.

Log Display Routes

In xlog.php you may specify your routes. For now there are only three routes.

  1. Index: where you can see the logs in tabular format using laravel pagination.
  2. Detail: Where you can see the logs detail.
  3. Delete: You can delete a log.

( You may specify you own routes and controllers in case you want to. All you have to do is Call the RummyKhan\XLog\Models\Log Model to get the logs.)

When changing routes, don't change the wildcard {id} from the routes.

Log Middleware

In xlog.php you can specify the middleware for you log routes. By default middleware is set to auth.

MIT Liscense

Laravel rummykhan/xlog is licensed under The MIT License (MIT).


All versions of xlog with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version 5.4.*
torann/geoip Version 1.0.*
jenssegers/agent Version ^2.5
jenssegers/mongodb Version ^3.2
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 rummykhan/xlog contains the following files

Loading the files please wait ....