tomasvotruba / punchcard
Lazy and strict way to configure your Laravel projects
Installs: 20 282
Dependents: 1
Suggesters: 0
Security: 0
Stars: 146
Watchers: 3
Forks: 6
Open Issues: 4
Requires
- php: ^8.1
- webmozart/assert: ^1.11
Requires (Dev)
- illuminate/console: ^10.1
- illuminate/container: ^10.1
- nikic/php-parser: ^4.15.4
- php-parallel-lint/php-parallel-lint: ^1.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpunit: ^10.1
- rector/rector: ^0.17.1
- symplify/easy-ci: ^11.2
- symplify/easy-coding-standard: ^11.3
- symplify/phpstan-extensions: ^11.2
- tomasvotruba/type-coverage: ^0.2
- tomasvotruba/unused-public: ^0.1
- tracy/tracy: ^2.10
README
I love Laravel, but I'm terrible at working with an array. I used the wrong keys and deleted the needed items, and my project kept crashing. So I did this project to help me with that.
Installation
composer require tomasvotruba/punchcard
Usage
This package provides basic fluent config classes for the Laravel project /config
directory.
You can use the right away after installing this package, e.g. in your config/cache.php
:
<?php declare(strict_types=1); use TomasVotruba\PunchCard\CacheConfig; return CacheConfig::make() ->default(env('CACHE_DRIVER', 'file')) ->stores([ 'array' => [ 'driver' => 'array', 'serialize' => false, ], ]) ->toArray();
The default configuration is used by default. You have to set values that are changed.
Happy coding!