PHPackages                             lubusin/laravel-decomposer - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. lubusin/laravel-decomposer

ActiveLaravel-package[Debugging &amp; Profiling](/categories/debugging)

lubusin/laravel-decomposer
==========================

A Laravel package to decompose your installed packages, their dependencies, your app &amp; server environment

v1.4(3mo ago)645175.3k↓36.3%431MITBladePHP ^7.2|^8.0

Since Feb 17Pushed 2mo ago13 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (18)Used By (1)

[![](/.github/laravel-decomposer-logo.svg)](/.github/laravel-decomposer-logo.svg)

[![Latest Stable Version](https://camo.githubusercontent.com/25f4a4eab4dca6abea4cb17fa14fe2f6b4f212f9a4bc6a1ed17ba7b733cfc7be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c75627573494e2f6c61726176656c2d6465636f6d706f736572)](https://packagist.org/packages/lubusin/laravel-decomposer)[![Total Stars](https://camo.githubusercontent.com/4258730aac367ba1ffeb48800130782d4c3b56dc586e13fb41d9ed0cbf397a14/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6c75627573494e2f6c61726176656c2d6465636f6d706f736572)](https://packagist.org/packages/lubusin/laravel-decomposer)[![Total Downloads](https://camo.githubusercontent.com/49287ab5a5ae5b6e6512f1b8049ccbeeec1918abdad2e884b4880d5a7f1cd05c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c75627573494e2f6c61726176656c2d6465636f6d706f736572)](https://packagist.org/packages/lubusin/laravel-decomposer)[![License](https://camo.githubusercontent.com/7ae5776ad04712f34b0095988359b65152b206fa3e4d62ebea6c158662980d56/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c75627573494e2f6c61726176656c2d6465636f6d706f736572)](https://github.com/lubusin/laravel-decomposer/blob/master/LICENSE.txt)

[![Laravel Decomposer](/.github/laravel-decomposer.jpg)](/.github/laravel-decomposer.jpg)

Overview
--------

[](#overview)

Laravel Decomposer decomposes and lists all the installed packages and their dependencies along with the Laravel &amp; the Server environment details your app is running in. Decomposer also generates a [markdown report](https://github.com/lubusIN/laravel-decomposer/blob/master/report.md) from those details that can be used for troubleshooting purposes, also it allows you to generate the same report [as an array](https://github.com/lubusIN/laravel-decomposer/wiki/Get-Report-as-an-array) and also [as JSON](https://github.com/lubusIN/laravel-decomposer/wiki/Get-Report-as-JSON) anywhere in your code. Laravel Package &amp; app devs you can also [add your own personal extra stats specific for your package or your app](https://github.com/lubusIN/laravel-decomposer/wiki/Add-your-extra-stats). All these just on the hit of a single route.

Features
--------

[](#features)

- This can be used by your non-tech client/user of your laravel app or non-experienced dev who still dosen't uses CLI to generate the system report &amp; send over to you so you can know the entire details of his environment.
- To see the list of all installed packages &amp; their dependencies in the laravel app directly from the browser
- To get the Laravel &amp; Server environment details on the same page with the packages list
- To check whether all the pre configurations &amp; extensions asked by Laravel are applied and loaded or not
- Suppose suddenly or after some changes your app broke, you can install Laravel Decomposer, generate &amp; copy the [report](https://github.com/lubusIN/laravel-decomposer/blob/master/report.md) and paste it in the issue box of the respective repo you are reporting the issue to.
- For package/laravel app developers this can be very useful when collecting the information from the users reporting the issues. As the report gives them complete info about the environment the issue is being raised in.
- It can also help you in other ways like suppose you have a package installed that is using illuminate/support v5.1, and an another package using illuminate/support v5.3, so getting these facts quickly by just hitting to a route can make you aware of possible unstability &amp; conflicts so you can report that to the respective package developer.
- It cuts down the troubleshooting time. For eg: Sometimes after trying all possible solutions at the end the user says 'I forgot to say I am on PHP 4'. Here Decomposer acts as the precaution &amp; removes the dependency of querying the user for every single thing.

Roadmap
-------

[](#roadmap)

- Allow Decomposer report to be accessed via code *Released in [v1.1](https://github.com/lubusIN/laravel-decomposer#helpers)*
- Allow users and other packages to add their own stats in the Decomposer report *Released in [v1.2](https://github.com/lubusIN/laravel-decomposer/wiki/Add-your-extra-stats)*
- Migrate UI framework from Bootstrap 3 CDN and jQuery to Tailwind CSS and Alpine.js for a modern, lightweight frontend with tighter integration into the Laravel ecosystem.
- Add a config file to allow user to control what he/she wants to see in the view
- Check for updates of the installed packages &amp; show if any available for the respective packages or their dependencies
- Compare same dependency versions for different packages &amp; warn user about the possible conflict. (Can be achieved even now as the search results highlighting is enabled, but sure it can be done in more better way)
- Make UI more informative &amp; UX more better
- Let us know if you want anything to be added in the decomposer. After all the user makes the packages worth :)
- We have created the [issues](https://github.com/lubusIN/laravel-decomposer/issues) &amp; [labels](https://github.com/lubusIN/laravel-decomposer/labels) with the appropriate titles , where you can contribute your ideas &amp; suggestions or let us know if you are working on a PR for that. Always more than happy to hear &amp; learn new things from the community.

Note

You can have a look at the [Roadmap](https://github.com/lubusIN/laravel-decomposer#roadmap). If you have any suggestions for code improvements, new optional or core features or enhancements, create an issue so you,us or any open source believer can start working on it.

Requirement
-----------

[](#requirement)

- PHP &gt;= 7.1.3

Compatibility
-------------

[](#compatibility)

- Laravel 6.x through 13.x

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

[](#installation)

### 1. Install the package

[](#1-install-the-package)

```
composer require lubusin/laravel-decomposer
```

### 2. Publish the package config (optional)

[](#2-publish-the-package-config-optional)

```
php artisan vendor:publish --tag=DecomposerConfig
```

After publishing, update `config/decomposer.php` and set `exclude_folders` to control which folders are ignored while calculating `app_size`.

### 3. Publish the package assets

[](#3-publish-the-package-assets)

```
php artisan vendor:publish --tag=DecomposerAssets --force
```

### 4. Add a route in your `routes/web.php`

[](#4-add-a-route-in-your-routeswebphp)

```
use Lubusin\Decomposer\Controllers\DecomposerController;

Route::get('decompose', [DecomposerController::class, 'index']);
```

### 5. Visit the Decomposer UI

[](#5-visit-the-decomposer-ui)

Go to  or the route you configured above.

Usage
-----

[](#usage)

The Docs can be found in the [Wiki](https://github.com/lubusIN/laravel-decomposer/wiki) but to save you one more click, here's the index

- [Add your own extra stats for your package or app](https://github.com/lubusIN/laravel-decomposer/wiki/Add-your-extra-stats)
- [Get Decomposer report as markdown](https://github.com/lubusIN/laravel-decomposer/wiki/Get-Markdown-Report)
- [Get Decomposer report as an array](https://github.com/lubusIN/laravel-decomposer/wiki/Get-Report-as-an-array)
- [Get Decomposer report as JSON](https://github.com/lubusIN/laravel-decomposer/wiki/Get-Report-as-JSON)

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

[](#contributing)

Thank you for considering contributing to the Laravel Decomposer. You can read the contribution guide lines [here](contributing.md)

If you discover a security vulnerability within Laravel, please send an e-mail at . All security vulnerabilities will be promptly addressed.

Development
-----------

[](#development)

### 1. Clone the Repository

[](#1-clone-the-repository)

Clone the repository to your local system:

```
git clone git@github.com:lubusIN/laravel-decomposer.git
```

### 2. Go to package folder

[](#2-go-to-package-folder)

```
cd laravel-decomposer
```

### 3. Create your development branch

[](#3-create-your-development-branch)

```
git checkout -b your-branch
```

### 4. Link your development branch in your Laravel project

[](#4-link-your-development-branch-in-your-laravel-project)

In your Laravel project, require your local package using Composer’s path repository feature. Add the following to your Laravel project's composer.json:

```
"repositories": [
    {
        "type": "path",
        "url": "../path-to-your-cloned-laravel-decomposer"
    }
]
```

Then require it using:

```
composer require lubusin/laravel-decomposer:dev-your-branch
```

Meet Your Artisans
------------------

[](#meet-your-artisans)

[LUBUS](https://lubus.in/?utm_source=github&utm_medium=open-source&utm_campaign=laravel-decomposer) is a web design agency based in Mumbai, India.

[![](https://raw.githubusercontent.com/lubusIN/.github/refs/heads/main/profile/banner.png)](https://cal.com/lubus)License
-------

[](#license)

Laravel Decomposer is open-sourced software licensed under the [MIT license](LICENSE.txt)

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance83

Actively maintained with recent releases

Popularity53

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~782 days

Total

16

Last Release

106d ago

Major Versions

v0.1.4 → v1.02017-03-01

v1.2.2 → v2.x-dev2017-08-24

PHP version history (3 changes)v0.1PHP ^7.0

v0.1.2PHP &gt;=5.6

v1.3PHP ^7.2|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11228182?v=4)[Harish Toshniwal](/maintainers/introwit)[@introwit](https://github.com/introwit)

![](https://www.gravatar.com/avatar/262dac789595d74fa69a10397f37c6125f027bba0587adaee7d1dc206480507c?d=identicon)[ajitbohra](/maintainers/ajitbohra)

---

Top Contributors

[![introwit](https://avatars.githubusercontent.com/u/11228182?v=4)](https://github.com/introwit "introwit (22 commits)")[![ajitbohra](https://avatars.githubusercontent.com/u/1039236?v=4)](https://github.com/ajitbohra "ajitbohra (13 commits)")[![Verma-Punit](https://avatars.githubusercontent.com/u/79571365?v=4)](https://github.com/Verma-Punit "Verma-Punit (4 commits)")[![mehtajayyyy](https://avatars.githubusercontent.com/u/35729575?v=4)](https://github.com/mehtajayyyy "mehtajayyyy (3 commits)")[![dducro](https://avatars.githubusercontent.com/u/2156884?v=4)](https://github.com/dducro "dducro (3 commits)")[![etiennemarais](https://avatars.githubusercontent.com/u/4479918?v=4)](https://github.com/etiennemarais "etiennemarais (2 commits)")[![jeffersongoncalves](https://avatars.githubusercontent.com/u/411493?v=4)](https://github.com/jeffersongoncalves "jeffersongoncalves (1 commits)")[![antimech](https://avatars.githubusercontent.com/u/13885653?v=4)](https://github.com/antimech "antimech (1 commits)")[![REBELinBLUE](https://avatars.githubusercontent.com/u/2143908?v=4)](https://github.com/REBELinBLUE "REBELinBLUE (1 commits)")

---

Tags

decomposerlaravellaravel-decomposerlaravel-package

### Embed Badge

![Health badge](/badges/lubusin-laravel-decomposer/health.svg)

```
[![Health](https://phpackages.com/badges/lubusin-laravel-decomposer/health.svg)](https://phpackages.com/packages/lubusin-laravel-decomposer)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k133.0M758](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k2.3M65](/packages/fruitcake-laravel-debugbar)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)

PHPackages © 2026

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