PHPackages                             sand/laravel-console-log - 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. sand/laravel-console-log

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

sand/laravel-console-log
========================

A php version of console log which can easily print messages and values in terminal in terminal for Laravel.

v1.0.0(2y ago)2132MITPHPPHP &gt;=5.4

Since Feb 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sand050965/laravel-console-log)[ Packagist](https://packagist.org/packages/sand/laravel-console-log)[ RSS](/packages/sand-laravel-console-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

laravel-console-log
===================

[](#laravel-console-log)

[![Packagist Version](https://camo.githubusercontent.com/4836b71b61a17e08327017c169f830a7900b45ca63332c5e9122d7f676840944/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616e642f6c61726176656c2d636f6e736f6c652d6c6f67)](https://camo.githubusercontent.com/4836b71b61a17e08327017c169f830a7900b45ca63332c5e9122d7f676840944/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616e642f6c61726176656c2d636f6e736f6c652d6c6f67)[![Packagist Downloads](https://camo.githubusercontent.com/5ad67d332edebd4d71f90570cd723028a6119dbf8fa03dfe5e248fce5c9e73c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616e642f6c61726176656c2d636f6e736f6c652d6c6f67)](https://camo.githubusercontent.com/5ad67d332edebd4d71f90570cd723028a6119dbf8fa03dfe5e248fce5c9e73c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616e642f6c61726176656c2d636f6e736f6c652d6c6f67)[![GitHub License](https://camo.githubusercontent.com/c2d88ebeb436d7eb2c8e2097c1acc48a1aa38fe6b0ba978fb2ee775fb376a221/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73616e643035303936352f6c61726176656c2d636f6e736f6c652d6c6f67)](https://camo.githubusercontent.com/c2d88ebeb436d7eb2c8e2097c1acc48a1aa38fe6b0ba978fb2ee775fb376a221/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73616e643035303936352f6c61726176656c2d636f6e736f6c652d6c6f67)[![GitHub Repo stars](https://camo.githubusercontent.com/6b17f34095f3f950da693f902da1ad42ed1d4427702f56628f96ff095d19c5ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73616e643035303936352f6c61726176656c2d636f6e736f6c652d6c6f67)](https://camo.githubusercontent.com/6b17f34095f3f950da693f902da1ad42ed1d4427702f56628f96ff095d19c5ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73616e643035303936352f6c61726176656c2d636f6e736f6c652d6c6f67)

This package lets backend developers easily print messages and values in terminal. This is the php version of console log for Laravel.

Compatible with Laravel v5.3+.

*P.S. If you have any useful idea for Laravel Console Log, which is not presented here, feel free to add it to our collection, we appreciate your support and gladly merge it 🥰*

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require sand/laravel-console-log
```

### Laravel 5.5+

[](#laravel-55)

The package will automatically register itself, so you don't need to do anything else.

### Laravel 5.4

[](#laravel-54)

Add this entry to `providers` array in your `config/app.php` file.

```
Sand\LaravelConsoleLog\LaravelConsoleLogServiceProvider::class
```

```
'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        ...
        Sand\LaravelConsoleLog\LaravelConsoleLogServiceProvider::class
        ...
    ],
```

Available function
------------------

[](#available-function)

- [`log`](###log)

### `log`

[](#log)

Check is passed parameter empty, and if not, adds `where` condition on `$column` to exiting query. Useful when you have complex query, with a lot of constructions like

##### Signature:

[](#signature)

```
Console::log($param);
```

##### Example:

[](#example)

```
$var = 'Hello World!';

- file_put_contents($logPath, var_export($variable, TRUE) . "\n\n");

+ Console::log($var);
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

810d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a5339ae4c09c56bd9d8cf98dc09e054bb2a6d4835e1d3429ceffbc6e734d614?d=identicon)[sand050965](/maintainers/sand050965)

---

Top Contributors

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

---

Tags

logphpconsoleterminallaravel

### Embed Badge

![Health badge](/badges/sand-laravel-console-log/health.svg)

```
[![Health](https://phpackages.com/badges/sand-laravel-console-log/health.svg)](https://phpackages.com/packages/sand-laravel-console-log)
```

###  Alternatives

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M308](/packages/spatie-laravel-activitylog)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[hedii/laravel-gelf-logger

A Laravel package to send logs to a gelf compatible backend like graylog

1333.4M10](/packages/hedii-laravel-gelf-logger)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299549.3k1](/packages/larabug-larabug)[hedii/artisan-log-cleaner

An artisan command to clear laravel log files

4161.6k](/packages/hedii-artisan-log-cleaner)

PHPackages © 2026

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