PHPackages                             bangaping27/component-counter - 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. bangaping27/component-counter

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

bangaping27/component-counter
=============================

A Laravel package to count routes, controllers, views, models, migrations, and seeders.

v1.0.0(1y ago)013MITPHP

Since Aug 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bangaping27/laravel-component-counter)[ Packagist](https://packagist.org/packages/bangaping27/component-counter)[ Docs](https://github.com/bangaping27/component-counter)[ RSS](/packages/bangaping27-component-counter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Component Counter
=================

[](#component-counter)

A Laravel package to count the number of routes, controllers, views, models, migrations, and seeders in your Laravel application.

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

[](#installation)

You can install the package via Composer. Run the following command in your Laravel project directory:

```
composer require bangaping27/component-counter
```

Usage
-----

[](#usage)

Once the package is installed, you can use the **'count:components'** command to get a summary of various components in your Laravel application.

Running the Command
-------------------

[](#running-the-command)

To count the number of routes, controllers, views, models, migrations, and seeders, use the following Artisan command:

```
php artisan count:components
```

Output
------

[](#output)

The command will display a neatly formatted report with the following details:

- Total Controllers: The number of controller files in app/Http/Controllers.
- Total Views: The number of view files in resources/views.
- Total Models: The number of model files in app/Models.
- Total Migrations: The number of migration files in database/migrations.
- Total Seeders: The number of seeder files in database/seeders.
- Total Routes: The number of registered routes

The output will look like this:

[![alt text](WhatsApp%20Image%202024-08-07%20at%2010.27.35_0ccf8ac9.jpg)](WhatsApp%20Image%202024-08-07%20at%2010.27.35_0ccf8ac9.jpg)

License
-------

[](#license)

This package is licensed under the MIT License.

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

[](#contributing)

If you would like to contribute to this package, please follow the standard GitHub workflow:

1. Fork the repository.
2. Create a new branch (git checkout -b feature-branch).
3. Commit your changes (git commit -am 'Add new feature').
4. Push to the branch (git push origin feature-branch).
5. Create a new Pull Request.
6.

### Contact

[](#contact)

For any questions or suggestions, please contact

### **Penjelasan:**

[](#penjelasan)

- **Installation**: Menjelaskan bagaimana menginstal package.
- **Usage**: Menjelaskan cara menggunakan perintah yang disediakan oleh package.
- **License**: Menyediakan informasi tentang lisensi package.
- **Contributing**: Memberikan petunjuk tentang bagaimana orang lain bisa berkontribusi pada package.
- **Contact**: Informasi kontak untuk pertanyaan atau saran.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

648d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13a6f6b292fb158fd79392b88f8c46ed6e37362e400d7f0961bc9d69c070e989?d=identicon)[bangaping27](/maintainers/bangaping27)

---

Top Contributors

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

---

Tags

laravelroutescontrollersmigrationsmodelsviewscountseederscomponent-counter

### Embed Badge

![Health badge](/badges/bangaping27-component-counter/health.svg)

```
[![Health](https://phpackages.com/badges/bangaping27-component-counter/health.svg)](https://phpackages.com/packages/bangaping27-component-counter)
```

###  Alternatives

[tightenco/ziggy

Use your Laravel named routes in JavaScript.

4.3k41.6M267](/packages/tightenco-ziggy)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[ashallendesign/redactable-models

A Laravel package for easily redacting model data.

1143.4k](/packages/ashallendesign-redactable-models)[vildanbina/laravel-versions

A Laravel package for managing model drafts.

333.3k](/packages/vildanbina-laravel-versions)

PHPackages © 2026

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