PHPackages                             dutymess/chalk - 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. [Caching](/categories/caching)
4. /
5. dutymess/chalk

ActiveLibrary[Caching](/categories/caching)

dutymess/chalk
==============

Easy tracepoint generator at the middle of procedures where creating breakpoints is not that easy.

v0.6.2(6y ago)31.7k↓80%MITPHPPHP &gt;=7.0

Since Sep 20Pushed 6y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

[![Packagist Downloads](https://camo.githubusercontent.com/f525e486a1b901400a0dff0a7b35c76e6a7cb040df700b2c33d4dfe0e042d024/68747470733a2f2f706f7365722e707567782e6f72672f647574796d6573732f6368616c6b2f646f776e6c6f616473)](https://packagist.org/packages/dutymess/chalk)[![Github All Releases](https://camo.githubusercontent.com/6abf0b80c7ed0dc1068a4034622b155fae53b47ab0c2744deb3f92da0c7bb7c6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f647574796d6573732f6368616c6b2f746f74616c2e737667)](https://github.com/dutymess/chalk)[![Semver](https://camo.githubusercontent.com/d6b3717f5264e2cb274f04b6fe00762ce9ff71f832b2349a8952bce7a76cf018/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f647574796d6573732f6368616c6b2e737667)](http://semver.org/spec/v2.0.0.html)[![license](https://camo.githubusercontent.com/6fdb299d90b1fa8ebfad446c717787157f0692252e0335ceb448d9cad7d6e533/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f647574796d6573732f6368616c6b2e737667)](https://camo.githubusercontent.com/6fdb299d90b1fa8ebfad446c717787157f0692252e0335ceb448d9cad7d6e533/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f647574796d6573732f6368616c6b2e737667)

[![Forks](https://camo.githubusercontent.com/815175f90e8b0eb096127468bb660c3f1f8a90fe971f8aae9abc967f5b536144/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f647574796d6573732f6368616c6b2e7376673f7374796c653d736f6369616c266c6f676f3d676974687562266c6162656c3d466f726b)](https://github.com/dutymess/chalk/network)[![Forks](https://camo.githubusercontent.com/b522ad187feb230ac422f3956379c5db85a1e731859c2d66e514a62369544871/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f647574796d6573732f6368616c6b2e7376673f7374796c653d736f6369616c266c6f676f3d676974687562266c6162656c3d5374617273)](https://github.com/peyman3d/koochak/stargazers)

Introduction
------------

[](#introduction)

Sometimes you need to have tracepoints inside your procedures, without breaking it with dumping some data.

Sometimes it's not very easy to use `dd()` or similar ways to see what's going on.

`Chalk` will utilize Laravel caching tools to make this work like a breeze.

Install
-------

[](#install)

```
composer require dutymess/chalk
```

Simple Usage
------------

[](#simple-usage)

⚠️ For security reasons, `Chalk` works when and only when the application is in the debug mode.

### In the Tracepoint

[](#in-the-tracepoint)

Easily store what you want to monitor later. A timestamp is added automatically.

```
chalk()->write($anything);
```

where

- `$anything` is a variable of any type, but is more efficient if provided in the type of string.

In a Safe Place
---------------

[](#in-a-safe-place)

A safe place is somewhere out of your procedure. This could be a blank testing page, or simply the `tinker` tool in the terminal console.

Read stored data, ordered by the timestamp.

```
chalk()->read();
```

An array of stored data, together with the carbon timestamps will be returned in the form of an array.

### Example

[](#example)

❗️ To be Added ❗️

Advanced Usage
--------------

[](#advanced-usage)

### Custom Stacks

[](#custom-stacks)

Sometimes, there are lots of things to be traced. Putting them all in a single array would make it difficult to track the changes.

To solve this problem, you may specify a custom stack name when calling the `chalk()` helper.

```
chalk('jafar')->write('something');
chalk('jafar')->read();
```

### Clearing Data

[](#clearing-data)

You may want to reset the current data and start clean at your first tracepoint.

```
chalk()->clear();
```

Of course, you may clear your data stored in the custom stacks as well.

```
chalk('jafar')->clear();
```

In some odd cases, you may want to clear all the stored data in all available stacks.

```
chalk()->clearAllStacks();
```

### Custom Expire Time

[](#custom-expire-time)

By default, `Chalk()` stores data in the cache for just ten minutes. This should be pretty enough to see what's going on.

However, you may override this default behavior by setting a custom timeout.

```
chalk()::setTimeout($minutes);
```

License
-------

[](#license)

`Chalk` is open-sourced and licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Recently: every ~93 days

Total

6

Last Release

2469d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19936104?v=4)[Taha Kamkar](/maintainers/dutymess)[@dutymess](https://github.com/dutymess)

---

Top Contributors

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

---

Tags

laraveldebugcachechalkdutymess

### Embed Badge

![Health badge](/badges/dutymess-chalk/health.svg)

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

###  Alternatives

[laravel/octane

Supercharge your Laravel application's performance.

4.0k26.6M223](/packages/laravel-octane)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[bagisto/bagisto

Bagisto Laravel E-Commerce

27.6k172.1k9](/packages/bagisto-bagisto)[laravel/nightwatch

The official Laravel Nightwatch package.

36210.1M36](/packages/laravel-nightwatch)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

973172.3k2](/packages/awssat-laravel-visits)

PHPackages © 2026

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