PHPackages                             farshidrezaei/laralog - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. farshidrezaei/laralog

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

farshidrezaei/laralog
=====================

a Laravel package which help you to submit your application actions

v1.0.0(7y ago)39MITPHP

Since May 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/farshidrezaei/laralog)[ Packagist](https://packagist.org/packages/farshidrezaei/laralog)[ RSS](/packages/farshidrezaei-laralog/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

LaraLog
=======

[](#laralog)

requirement : Laravel ^5.0

`farshidrezaei/laralog` is a Laravel package which help you to submit your application actions.

Install
-------

[](#install)

To install through Composer, by run the following command:

```
composer require farshidrezaei/laralog
```

The package will automatically register a service provider.

then publish the package's configuration file, migrations and helpers by running:

```
php artisan vendor:publish --provider="FarshidRezaei\LaraLog"
```

Documentation
-------------

[](#documentation)

### Configs

[](#configs)

in the `configs/laralog.php` you can set the log drivers;

```
    'db_driver' => true,
    'file_driver' => true,
```

> if `db_driver => true`, logs table will create, logs will submit in database and submit method return submitted log object.

> if `file_driver' => true` , logs file will created, logs will submit in log file in "storage/app/LaraLog/" and if `db_driver===false`, submit method return string of submitted log line in the log file.

### Create table

[](#create-table)

after install package and set configs,for create logs table, run

```
php artisan migrate
```

### Usage

[](#usage)

you can use this syntax to submit logs:

```
LaraLog::new()
    ->level( /* 'info', 'success', 'warning', 'danger' */) //default:'info'
    ->subject( 'Subject of the action' ) //nullable
    ->message( 'Message of the action' ) //nullable
    ->user( /* true (set who did this action.), false (dont set who did this action) */ ) //default:false
    ->submit();
```

for easy usage, you can use helper function, too:

```
laralog()
    ->level( 'info')
    ->subject( 'Product' )
    ->message( "Product [$product->title]($product->id) created." )
    ->user( true )
    ->submit();
```

you can access to submitted log :

```
$log = laralog()
       ->level( 'info')
       ->subject( 'Product' )
       ->message( "Product Created" )
       ->user( false )
       ->submit();
```

Assuming `db_driver===true` in `configs/laralog.php`, $log is equal to :

```
{
    "id": 1,
    "level": "info",
    "subject": "Product",
    "message": "Product created.",
    "user_id": null
}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

2555d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39159567f8a54c452a911b722d524b66bd673c4cb02a4e989eaa8eb29d84eee0?d=identicon)[farshidrezaei](/maintainers/farshidrezaei)

---

Top Contributors

[![farshidrezaei](https://avatars.githubusercontent.com/u/16887867?v=4)](https://github.com/farshidrezaei "farshidrezaei (5 commits)")

---

Tags

actionslaravellaravel-packagelogloggerphp

### Embed Badge

![Health badge](/badges/farshidrezaei-laralog/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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