PHPackages                             hsndmr/cappadocia-viewer-for-laravel - 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. [Templating &amp; Views](/categories/templating)
4. /
5. hsndmr/cappadocia-viewer-for-laravel

ActiveLibrary[Templating &amp; Views](/categories/templating)

hsndmr/cappadocia-viewer-for-laravel
====================================

Cappadocia Viewer for Laravel

1.1.0(2y ago)1348[2 PRs](https://github.com/hsndmr/cappadocia-viewer-for-laravel/pulls)MITPHPPHP ^8.1

Since Jul 31Pushed 2y ago2 watchersCompare

[ Source](https://github.com/hsndmr/cappadocia-viewer-for-laravel)[ Packagist](https://packagist.org/packages/hsndmr/cappadocia-viewer-for-laravel)[ Docs](https://github.com/hsndmr/cappadocia-viewer-for-laravel)[ RSS](/packages/hsndmr-cappadocia-viewer-for-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (13)Versions (6)Used By (0)

Cappadocia Viewer for Laravel
=============================

[](#cappadocia-viewer-for-laravel)

 ![Cappadocia Viewer for Laravel](./art/app.png)[![Latest Version on Packagist](https://camo.githubusercontent.com/f332e12217c7b278f198e306975b75d1546819316eea66a3c794355f22f7b819/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68736e646d722f6361707061646f6369612d7669657765722d666f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hsndmr/cappadocia-viewer-for-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bb1aad88a1da0133cfacce84c4f27580498d0ba243bd87d697ebf7b8750601d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f68736e646d722f6361707061646f6369612d7669657765722d666f722d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/hsndmr/cappadocia-viewer-for-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c4a13b5d2df7b687970a002a222ce3b338102a458b4c452c9635b403d6075bd9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f68736e646d722f6361707061646f6369612d7669657765722d666f722d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/hsndmr/cappadocia-viewer-for-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/831bede643a0a3c632807302dca091f1bb3d0fd2da2f61ad9327acdea9139a38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68736e646d722f6361707061646f6369612d7669657765722d666f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hsndmr/cappadocia-viewer-for-laravel)

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

[](#installation)

Prior to installing this package, ensure that you have already installed [Cappadocia Viewer](https://github.com/hsndmr/cappadocia-viewer/releases/tag/0.1.0)

You can install the package via composer:

```
composer require hsndmr/cappadocia-viewer-for-laravel --dev
```

You can publish the config file with:

```
php artisan vendor:publish --tag="cappadocia-viewer"
```

This is the contents of the published config file:

```
return [
    'server_url'    => env('CAPPADOCIA_VIEWER_SERVER_URL', 'http://127.0.0.1:9091'),
    'timeout'       => env('CAPPADOCIA_VIEWER_TIMEOUT', 3),
    'enabled'       => env('CAPPADOCIA_VIEWER_ENABLED', true),
    'watch_logs'    => env('CAPPADOCIA_VIEWER_WATCH_LOGS', true),
    'watch_jobs'    => env('CAPPADOCIA_VIEWER_WATCH_JOBS', false),
    'watch_queries' => env('CAPPADOCIA_VIEWER_WATCH_QUERIES', false),
];
```

Usage
-----

[](#usage)

### Showing Queries

[](#showing-queries)

You can show queries by using `cappadocia` helper function.

```
    cappadocia()->watchQueries();
    User::latest()->first();
    cappadocia()->stopWatchingQueries();

    // This query will not be shown in the viewer
    User::first()->first();
```

 ![Cappadocia Viewer for Laravel](./art/showing_queries.png)If you want to show all queries, you can add `CAPPADOCIA_VIEWER_WATCH_QUERIES=true` to your .env file.

### Showing Jobs

[](#showing-jobs)

You can show jobs by using `cappadocia` helper function.

```
cappadocia()->watchJobs();
CappadociaViewerJob::dispatchSync('viewer');
cappadocia()->stopWatchingJobs();

// This job will not be shown in the viewer
CappadociaViewerJob::dispatchSync('another viewer');
```

 ![Cappadocia Viewer for Laravel](./art/showing_jobs.png)If you are utilizing Laravel Horizon, you can insert `CAPPADOCIA_VIEWER_WATCH_JOBS=true` into your .env file. This will enable you to view all jobs in the viewer

```
CappadociaViewerJob::dispatch('viewer');
```

### Showing Logs

[](#showing-logs)

Logs are shown by default. If you want to disable it, you can add `CAPPADOCIA_VIEWER_WATCH_LOGS=false` to your .env file.

```
Log::info('This log will be shown in the viewer');
```

![Cappadocia Viewer for Laravel](./art/showing_logs.png)### Showing Requests

[](#showing-requests)

If you want to show requests, you can add `CAPPADOCIA_VIEWER_WATCH_REQUESTS=true` to your .env file. After that, you can see all requests in the viewer.

![Cappadocia Viewer for Laravel](./art/showing_requests.png)### Custom Messages

[](#custom-messages)

If you want to show custom messages, you can use `cappadocia` helper function.

```
cappadocia('This is custom message')
    ->send([
        'custom' => 'data',
    ]);

cappadocia('This is custom message with Badge')
    ->setBadge('Badge')
    ->send([
        'custom' => 'data',
    ]);
```

![Cappadocia Viewer for Laravel](./art/showing_custom_messages.png)### Disabling Cappadocia Viewer

[](#disabling-cappadocia-viewer)

To disable the Cappadocia Viewer, you can include `CAPPADOCIA_VIEWER_ENABLED=false` in your .env file. This could be particularly useful if you wish to disable it within a testing environment.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Hasan Demir](https://github.com/hsndmr)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

3

Last Release

1011d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75b0d6524969853957b7dd14becc091a1735ef229dd7d4c8d82e49ad5ab78652?d=identicon)[demirjs](/maintainers/demirjs)

---

Top Contributors

[![hsndmr](https://avatars.githubusercontent.com/u/41634504?v=4)](https://github.com/hsndmr "hsndmr (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelhsndmrcappadocia-viewer-for-laravel

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/hsndmr-cappadocia-viewer-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/hsndmr-cappadocia-viewer-for-laravel/health.svg)](https://phpackages.com/packages/hsndmr-cappadocia-viewer-for-laravel)
```

###  Alternatives

[ryangjchandler/blade-capture-directive

Create inline partials in your Blade templates with ease.

8222.2M12](/packages/ryangjchandler-blade-capture-directive)[spatie/laravel-blade-comments

Add debug comments to your rendered output

177325.5k](/packages/spatie-laravel-blade-comments)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[daikazu/laravel-glider

Start using Glide on-the-fly instantly in your Laravel blade templates.

882.3k](/packages/daikazu-laravel-glider)[combindma/dash-ui

A streamlined and stylish UI component library for Laravel Blade, crafted with TailwindCSS and AlpineJs for simplicity and elegance.

631.4k](/packages/combindma-dash-ui)

PHPackages © 2026

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