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)1235MITPHPPHP ^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 1w ago

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 61% of packages

Maintenance41

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

494d 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

[illuminate/pagination

The Illuminate Pagination package.

12234.6M1.1k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9350.2M310](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.8M410](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.7M146](/packages/illuminate-cookie)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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