PHPackages                             takshak/alogger - 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. [Image &amp; Media](/categories/media)
4. /
5. takshak/alogger

ActiveLibrary[Image &amp; Media](/categories/media)

takshak/alogger
===============

Imager provider package for laravel

1.4.0(4y ago)035MITPHP

Since Feb 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/takshaktiwari/alogger)[ Packagist](https://packagist.org/packages/takshak/alogger)[ RSS](/packages/takshak-alogger/feed)WikiDiscussions main Synced today

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Introduction
============

[](#introduction)

Can be used for log / record user activity via middleware or by custom code. It has a route middleware *Alogger::class* and has view components to view logs lists and details in admin / user panel.

Quick Start
-----------

[](#quick-start)

Install using given command:

```
composer require takshak/alogger

```

Run migration using php artisan migrate, loggers table will get migrated. Use `Alogger::class` middleware in your routes in a group or individually.

```
use Takshak\Alogger\Http\Middleware\Alogger;
/* *
	...
Route::middleware([Alogger::class])->group(function(){
	Route::view('/', 'home');
	/* *
	...
});

```

See your all recorded logs via `https://domain.com/aloggers`

More Information
----------------

[](#more-information)

All logs will be stored in loggers table. You can set your preference in `alogger.php`. Run the following command to publish configurations.

```
php artisan vendor:publish --provider="Takshak\Alogger\AloggerServiceProvider"

```

### Configuration (alogger.php)

[](#configuration-aloggerphp)

**`log:`** you can disable or enable the logger by setting this value *true* or *false*

**`routes:`** wold to like to enable predefined routes () to see all logs *true* or *false*

**`record:`** set all the available properties which will be recorded. *status* key will define tha this parameter needs to be recorded or not. *except* key will ignore (not record) the matching values

**`except:`** pass some urls where alogger will not work, *matches*: pass some parts of url, if current url matches any of these values, logs will not be recorded. *urls*: pass the exact url on which alogger will not log any data

**`max_rows:`** maximum number of rows stored in database

**`max_days:`** number of days. logs after these days will be deleted

### Commands

[](#commands)

**`php artisan alogger:prune`** This will prune the logs depend on max\_rows and max\_days. log more than *max\_rows* and older than *max\_days* will be deleted. You can set this command in your scheduler will be manage delete the older logs.

**`php artisan alogger:prune`** All logs will be cleared / flushed from database.

### Components

[](#components)

It has two components with compatible with **bootstrap 4** or **5**

**``** This component can be used to display all the logs on any page. This has some search and filters and view button for a popup to show the details of the log. You can pass `paginate` property to show number of items per page, default is 50 and `order` property to order the list by *oldest* first or *latest* first, default value is *latest*. Eg. ``

**``** This component will show the detail of a log. You need to pass the logger id for which you want to see the details

### Using alogger manually

[](#using-alogger-manually)

You can use `Alogger Service` to record the log manually from your controller or anywhere else.

```
use namespace  Takshak\Alogger\Service;
/* * * /
$alogger = new Alogger;
$alogger->log(data: $data, remarks $remarks);
/* OR */
(new Alogger)->log(data: $data, remarks $remarks);
/* * Setting different properties * */
(new Alogger)->remarks('your remarks goes here')
	->data($dataArray)
	->user($userId_or_userModel)
	->log();

```

Available methods to be used with Alogger Service

MethodsDescription*remarks($remarks, $data = null)*you can set remarks and data here*activity($activity, $data = null)*equivalent to remarks functions*data($data)*setting the data, if not set with remarks or activity method*user($user)*You can set user by passing user id or user model*log($user\_id = null, $url = null, $data = null, $remarks = null)*logs the activity---

If you want to contribute, have any suggestion or want say something, please write to

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

5

Last Release

1578d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c20abfe33a88ffe808d63e38e4cbecc9c493458cff8b3d8338ccf846395f57a8?d=identicon)[takshaktiwari](/maintainers/takshaktiwari)

---

Top Contributors

[![takshaktiwari](https://avatars.githubusercontent.com/u/58802422?v=4)](https://github.com/takshaktiwari "takshaktiwari (21 commits)")

### Embed Badge

![Health badge](/badges/takshak-alogger/health.svg)

```
[![Health](https://phpackages.com/badges/takshak-alogger/health.svg)](https://phpackages.com/packages/takshak-alogger)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
