PHPackages                             coderg33k/typed-config-generator - 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. coderg33k/typed-config-generator

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

coderg33k/typed-config-generator
================================

Typed Classes for your Laravel configs!

1.1.1(2y ago)15131MITPHPPHP ^8.2

Since Oct 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MJTheOne/typed-config-generator)[ Packagist](https://packagist.org/packages/coderg33k/typed-config-generator)[ RSS](/packages/coderg33k-typed-config-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (15)Versions (10)Used By (0)

A typed config class generator for Laravel
==========================================

[](#a-typed-config-class-generator-for-laravel)

Are you a PHPStan lovin' strict programmer?! Say no more! This package will generate typed config classes for you based on your config files.

We all struggle with the `mixed` return type of the `config()` helper function. This package will stop your struggle and leave all your (unnecessary?) type checks behind you!

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 1: Download the module

[](#step-1-download-the-module)

Open a command console, enter your project directory and execute:

```
$ composer require coderg33k/typed-config-generator
```

### Step 2: using the module

[](#step-2-using-the-module)

By running the command `php artisan coderg33k:generate` the package will generate a typed config class for each config file in your `config` directory. The command has a set of options to tweak the output.

Run `php artisan coderg33k:generate --help` to see the options.

OptionDescription`--all`Don't get a prompt and generate a class for all configs`--no-strict`Don't add strict typing to the generated classes`--no-final`Don't make the generated classes final`--no-readonly`Don't make the generated properties readonly`--package=`A string that represents a package, like laravel or spatie to generate the classes for`--config=*`A comma separated list of configs to generate classes forTesting
-------

[](#testing)

This package uses [PHPUnit](https://phpunit.de) for unit and integration tests.

It can be run standalone by `composer phpunit` or within the complete checkup by `composer checkup`

Changelog
---------

[](#changelog)

See the [project changelog](https://github.com/mjtheone/typed-config-generator/blob/main/CHANGELOG.md)

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

[](#contributing)

Contributions are always welcome. Please see [CONTRIBUTING.md](https://github.com/mjtheone/typed-config-generator/blob/main/CONTRIBUTING.md) and [CODE\_OF\_CONDUCT.md](https://github.com/mjtheone/typed-config-generator/blob/main/CODE_OF_CONDUCT.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/mjtheone/typed-config-generator/blob/main/LICENSE) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~22 days

Total

9

Last Release

836d ago

Major Versions

0.1.5 → 1.0.02023-11-03

PHP version history (2 changes)0.1.0PHP ^8.1

1.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/14ff57313528ad497507d476da9ad5274da1d988d1bad15b01045c400d2ade6c?d=identicon)[MJTheOne](/maintainers/MJTheOne)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/coderg33k-typed-config-generator/health.svg)

```
[![Health](https://phpackages.com/badges/coderg33k-typed-config-generator/health.svg)](https://phpackages.com/packages/coderg33k-typed-config-generator)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M682](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M857](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[mrmarchone/laravel-auto-crud

Laravel Auto CRUD helps you streamline development and save time.

28711.8k2](/packages/mrmarchone-laravel-auto-crud)

PHPackages © 2026

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