Download the PHP package panoscape/tracker without Composer

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

Eloquent CRUD records tracking for Laravel

Installation

You can install this package via composer

First, register service provider

config/app.php

Next, you may publish the config file with

Migration

Publish localization

Usage

Add Panoscape\Tracker\Context trait to any model(s) you'd like to track.

Remember that you'll need to implement the abstract getContextLabel method from the trait. This will add the specified name value to the records.

Created new Project project_001

Context

A Context is a model which is tracked on CURD actions. Like in User 001 Deleted Project 001, Project 001 is the Context we're talking about here.

To get all records of a contexted model

or via dynamic property

You may change the name of records if you like(or to resolve method name conflicts)

Agent

An Agent is a user who performs an action. Like in User 001 Deleted Project 001, User 001 is the Agent.

The agent in a record is always got from Auth, thus the authorized user when the action is being performed.

You might have multiple user types in your application, and this package take well care of it.

To be able to getting related records from an agent, all you need is to add Panoscape\Tracker\Agent trait to that model.

Get all records performed by an agent

or via dynamic property

You may change the name of records if you like(or to resolve method name conflicts)

A record's agent might be null if it's tracked while unauthenticated

Record

The default strcuture of a record

Field Type Nullable
id big unsigned integer N
context_id unsigned integer N
context_type string N
agent_id unsigned integer Y
agent_type string Y
message string N
meta text Y
performed_at timestamp N

The message filed is the action message in brief. examples

Created new Project my_project

Updating Project my_project

Deleting Project my_project

Restoring Project my_project

The meta field is a json context of modified properties of a model. It's only available when the record is Updating ....

The performed_at is a timestamp which indicates the moment the record is created, thus the moment the action being performed.

Get context of a record

or via dynamic property

Check agent of a record

Get agent of a record

or via dynamic property

The meta property on Record is deserialized to an array, which hold the modification history

Localization

You may lolcalize the record output

This is the default localization

Simplified Chinese

The :context is by default the class's base name.

To localize it, you can append a new language line to the localization file with the key being the class base name in snake case

The :name is provided by getContextLabel which we have mentioned above.

Configuration

Here is the default Configuration

To change the table hodling the records, set records_table. Remember to update your migration after that.

To apply filters to operations, set operations. Only operations in the list will be tracked.

To apply filters to agents, set agent_ignore. Operations performed by agents in the list will NOT be tracked.

If you'd like to bypass an unauthenticated operation, add 'nobody' to agent_ignore.

If you need to bypass a specific agent type, add it's class name to agent_ignore.


All versions of tracker with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
illuminate/support Version ^5.3
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 panoscape/tracker contains the following files

Loading the files please wait ....