Download the PHP package arpanihan/auditify without Composer

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

Auditify - Laravel Action and Activity Log Package

Auditify is a flexible and easy-to-use package for Laravel that allows you to log Action Logs (system-level actions like CRUD operations) and Activity Logs (frontend user interactions like page visits, button clicks, etc.). The package is highly configurable and can be easily integrated into any Laravel project.

✨ Key Features

οΏ½ Requirements

πŸš€ Installation

🟒 Recommended: Safe Installation (All Projects)

This command will:

πŸ” Check Installation Status

🟑 Alternative: Manual Installation (Advanced Users)

If you prefer manual control or need specific migration paths:

πŸ“‹ Get Specific Migration Paths

πŸ”΄ ❌ AVOID: Full Migration Command

⚠️ DO NOT USE in existing projects:

Instead use:

βš™οΈ Configuration

The package comes with a comprehensive configuration file. After publishing, you can modify config/auditify.php:

Environment Variables

You can also use environment variables in your .env file:

Running Migrations

After publishing the migration files, you can run the migrations for Auditify separately from your existing migrations to avoid conflicts with your project’s database.

To run only the Auditify migrations, use the following command:

This will apply only the Auditify migrations and will not interfere with any other migrations in your project. Ensure that your_auditify_migration_folder points to the correct folder where Auditify migrations are located.

If you want to run all migrations, including your project migrations, simply use:

However, we recommend running the package-specific migrations to avoid any issues.

Configuration

After publishing the config file, you can modify the config/auditify.php file to suit your needs.

Example Configuration (config/auditify.php):

Dynamic Configuration

πŸ“š Usage

Action Logging

Log system-level operations like CRUD actions, logins, etc:

Activity Logging

Log user interactions and frontend activities:

Frontend JavaScript Integration

Automatically track frontend activities with the included JavaScript module:

Using Facades

You can also use the package facades for cleaner code:

πŸ”— API Endpoints

The package provides API endpoints for external integrations:

πŸ› οΈ Troubleshooting

Common Issues & Solutions

❌ "Table already exists" Error

Problem: Migration fails because table names conflict with existing tables.

Solution:

❌ "Migration ran all my migrations"

Problem: Used php artisan migrate instead of safe installation.

Solution:

❌ "Config not found" Error

Problem: Configuration file not published.

Solution:

❌ JavaScript not working

Problem: Assets not published.

Solution:

Quick Commands Reference

πŸ§ͺ Testing

The package is thoroughly tested. Run tests in your Laravel project:

Example Test

ActivityLogger::log('tab_switch', 'Switched to settings tab', null, 'Settings'); ActivityLogger::log('modal_open', 'Opened user profile modal', null, 'Users');

Logging an Activity

To log user activities (e.g., page visits, button clicks, etc.), use the ActivityLogger service.

Frontend Activity Logging (JavaScript)

The Auditify package includes a JavaScript file (activityLog.js) for logging frontend activities. You can include it in your Blade views.

Example Usage:

Customizing the JavaScript Path

If you prefer to use a custom path for the activityLog.js file, simply modify the activity_js_path key in config/auditify.php.

πŸ”§ Advanced Configuration

Custom Table Names

Avoid conflicts by customizing table names in your .env file:

Disabling Routes

If you want to use only the logging functionality without web routes:

Role Resolution

The package safely resolves user roles. If you have a custom Role model:

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“„ License

This package is open-sourced software licensed under the MIT license.

πŸ‘¨β€πŸ’» Author

ArpaNihan

πŸ“Š Package Stats


Ready to track every action in your Laravel app? Install Auditify today! πŸš€


All versions of auditify with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
illuminate/support Version >=9.0
illuminate/database Version >=9.0
illuminate/http Version >=9.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 arpanihan/auditify contains the following files

Loading the files please wait ...