PHPackages                             tmarois/laravel-code-truncator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tmarois/laravel-code-truncator

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

tmarois/laravel-code-truncator
==============================

A Laravel command to truncate your codebase to fit within AI token limits.

v1.0.2(1y ago)1231MITPHPPHP ^8.1

Since Apr 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tmarois/LaravelCodeTruncator)[ Packagist](https://packagist.org/packages/tmarois/laravel-code-truncator)[ RSS](/packages/tmarois-laravel-code-truncator/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Laravel Code Truncator
======================

[](#laravel-code-truncator)

This service is used to help AI understand the context of your Laravel project.

### Install

[](#install)

```
composer require tmarois/laravel-code-truncator
```

### Usage

[](#usage)

Run the truncate service on your project:

`php artisan code:truncate`

File will be stored in laravel storage

### Running local tests

[](#running-local-tests)

Run unit tests (on the package):

`./vendor/bin/phpunit`

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance44

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

3

Last Release

449d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2489333?v=4)[Tim Marois](/maintainers/timothymarois)[@timothymarois](https://github.com/timothymarois)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tmarois-laravel-code-truncator/health.svg)

```
[![Health](https://phpackages.com/badges/tmarois-laravel-code-truncator/health.svg)](https://phpackages.com/packages/tmarois-laravel-code-truncator)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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