Download the PHP package arrtrust/tracker without Composer

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

Tracker

Simple site visit/statistics tracker for Laravel 5.


Tracker provides a simple way to track your site visits and their statistics.

Features

Installation

Installing Tracker is simple.

  1. Pull this package in through Composer.

  2. In order to register Tracker Service Provider add 'Arrtrust\Tracker\TrackerServiceProvider' to the end of providers array in your config/app.php file.

  3. You may configure the default behaviour of Tracker by publishing and modifying the configuration file. To do so, use the following command.

    Than, you will find the configuration file on the config/tracker.php path. Information about the options can be found in the comments of this file. All of the options in the config file are optional, and falls back to default if not specified; remove an option if you would like to use the default.

    This will also publish the migration file for the default SiteView model. Do not forget to migrate your database before using Tracker.

  4. In order to register the Facade add the following line to the end of aliases array in your config/app.php file.

  5. You may now access Tracker either by the Facade or the helper function.

  6. It is important to record views by using the supplied middleware to record correct app runtime and memory information. To do so register the middleware in app\Http\Kernel.

    It is better to register this middleware as a routeMiddleware instead of a global middleware and use it in routes or route groups definitions as it may not be necessary to persist all site view. This will persist and attach any Trackable that is added to stack to site views automatically when the request has been handled by Laravel.

  7. To attach views to any model or class, you should implement the Arrtrust\Tracker\TrackableInterface interface. Tracker provides Arrtrust\Tracker\Trackable trait to be used by Eloquent models.

    The Trackable trait uses Eloquent's belongsToMany relationship which utilizes pivot tables. Here is a sample migration for the pivot table:

  8. Check the Arrtrust\Tracker\Cruncher class and test for statistics number crunching. It is equipped with a number of methods for different types of statistics (mostly counts) in different time spans.

Please check the tests and source code for further documentation, as the source code of Tracker is well tested and documented.

License

Tracker is released under MIT License.


All versions of tracker with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
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 arrtrust/tracker contains the following files

Loading the files please wait ....