Download the PHP package dibakar/activity-scope without Composer

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

Activity Scope β€” Audit Trail & Activity Logging for Laravel

Latest Version on Packagist Total Downloads License PHP Version Laravel Version

πŸ“‹ Table of Contents

πŸ“– About {#about}

Activity Scope is a high-performance audit trail and activity logging system for Laravel. It allows you to effortlessly track user actions, monitor Eloquent model changes, and maintain a historical record of your application's stateβ€”all while prioritizing privacy and high performance.

πŸ“š Check out the API.md for a full list of available builder methods and scopes.

✨ Features {#features}

πŸ“‹ Requirements {#requirements}

πŸš€ Installation {#installation}

You can install the package via composer:

Quick Setup

Publish the config and migrations with our handy install command:

Manual Setup

Alternatively, you can publish them manually via vendor:publish:

βš™οΈ Configuration {#configuration}

After publishing the config file, you can customize the behavior in config/activityscope.php:

πŸ›  Usage {#usage}

Basic Usage

Using the Global Helper

The most common way to log activity is using the activity() helper:

Automatic Actor Resolution

By default, the package automatically attaches auth()->user() to any activity. You can override this manually:

Model Integration

Automatic Model Logging

Add the LogsActivity trait to your model for automatic auditing of created, updated, and deleted events:

Manual Model Integration

Use the HasActivities trait to gain access to relationships and a model-contextual activity builder:

Advanced Model Configuration

Customize what gets logged and when:

Query Scopes

Filtering Activities

Use the powerful query scopes to retrieve specific activities:

Advanced Querying

Advanced Features

Control Flow Logic

Utilize fluent methods to control when and how activities are logged:

Security & Privacy

Built-in tools to handle sensitive data and privacy requirements:

Status & Severity

Categorize activities by outcome and importance:

Metadata & Context

Rich context management for detailed audit trails:

Events & Hooks

Human-Readable Messages

Transform any activity record into a readable string using the integrated MessageBuilder:

Event System

Listen to activity events to trigger additional actions:

Custom Event Handlers

πŸ“š Examples {#examples}

Check out the examples/ directory for comprehensive usage examples:

Quick Example

πŸ§ͺ Testing {#testing}

Basic Assertions

You can use the built-in test helper to assert activities were logged:

Advanced Testing

Test Helpers

Run package tests with:

For code analysis:

πŸ“– API Reference {#api-reference}

For a comprehensive list of all available methods, scopes, and advanced features, check out our detailed API Documentation.

Quick Reference

🀝 Contributing {#contributing}

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Development Setup

Guidelines

πŸ“ Changelog {#changelog}

Please see CHANGELOG.md for more information on what has changed recently.

πŸ“„ License {#license}

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™‹β€β™‚οΈ Support {#support}


Made by Dibakar Mitra


All versions of activity-scope with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.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 dibakar/activity-scope contains the following files

Loading the files please wait ...