PHPackages                             utopia-php/audit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. utopia-php/audit

ActiveLibrary[Framework](/categories/framework)

utopia-php/audit
================

A simple audit library to manage application users logs

2.2.1(3mo ago)23246.7k↓19.6%9[2 PRs](https://github.com/utopia-php/audit/pulls)1MITPHPPHP &gt;=8.0CI failing

Since Dec 28Pushed 1mo ago7 watchersCompare

[ Source](https://github.com/utopia-php/audit)[ Packagist](https://packagist.org/packages/utopia-php/audit)[ RSS](/packages/utopia-php-audit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (107)Used By (1)

Utopia Audit
============

[](#utopia-audit)

[![Build Status](https://camo.githubusercontent.com/77d85daf8e6c44aa9b5d66c18aacee4a21f10667e6a5e2fece41e7ac3b4fcdee/68747470733a2f2f7472617669732d63692e6f72672f75746f7069612d7068702f61756469742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/utopia-php/audit)[![Total Downloads](https://camo.githubusercontent.com/855b887dacf37a7c4aafd0202c9669ecc11afb9154b89dd2cee3d8b4bd9a33cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75746f7069612d7068702f61756469742e737667)](https://camo.githubusercontent.com/855b887dacf37a7c4aafd0202c9669ecc11afb9154b89dd2cee3d8b4bd9a33cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75746f7069612d7068702f61756469742e737667)[![Discord](https://camo.githubusercontent.com/b130cc39f0cd917f3fc3e9f94c08a8ba302c8b36d32d8914f5494c473a7070e6/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f353634313630373330383435313531323434)](https://appwrite.io/discord)

Utopia framework audit library is simple and lite library for managing application user logs. This library is aiming to be as simple and easy to learn and use. This library is maintained by the [Appwrite team](https://appwrite.io).

Although this library is part of the [Utopia Framework](https://github.com/utopia-php/framework) project it is dependency free, and can be used as standalone with any other PHP project or framework.

Features
--------

[](#features)

- **Adapter Pattern**: Support for multiple storage backends through adapters
- **Default Database Adapter**: Built-in support for utopia-php/database
- **Extensible**: Easy to create custom adapters for different storage solutions
- **Batch Operations**: Support for logging multiple events at once
- **Query Support**: Rich querying capabilities for retrieving logs

Getting Started
---------------

[](#getting-started)

Install using composer:

```
composer require utopia-php/audit
```

Usage
-----

[](#usage)

### Using the Database Adapter (Default)

[](#using-the-database-adapter-default)

The simplest way to use Utopia Audit is with the built-in Database adapter:

```
