Download the PHP package julesgraus/actionlogs without Composer

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

Actionlogs

Log any actions users do in your Laravel application.

Installation

You can install the package via composer:

Usage

Direct logging

You can log actions directly like so:

The logged action wil be linked to the authenticated user if any. The payload can be anything but a resource.

Automatic logging

The package listens to some events in the namespace by default and automatically logs those. This is a list of those events:

You can listen to extra events if you would like to. You could for example do that like so:

Put that line of code in the register method of a service provider in your implementation.

Housekeeper

The package is compatible with . Register the class to the housekeeper and read the published config options for more info.

Customisation

Configuration and localisation

publish the config files and translation file of this package by running . You can then edit the config file that will be put in the config dir. And the translations that are put in

Overriding the default Actionlog model

When the default model from this package does not provide the functionality you want, you can create a custom model yourself.

Just make sure it implements and then register it to Laravel's container in the register method of a service provider like so:

Also make sure your custom implementation can accept any variable type for the payload attribute except a resource type.

Overriding other stuff

Like the actionlog model you can also override other stuff by implementing and registering these interfaces in the namespace:

Please bind resources and collections to a function that returns the class name of an implementation. Else Laravel will try to instantiate the classes and nag about the resource parameter that it cannot resolve.

Testing

Run tests by running this command in the root of the package.


All versions of actionlogs with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
julesgraus/housekeeper Version ^1.0
laravel/framework Version ^9.0|^10.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 julesgraus/actionlogs contains the following files

Loading the files please wait ....