laranail / env-kit
View-less, fluent .env editing engine for Laravel — programmatic API, Artisan CLI, and interactive TUI.
Package info
pkg:composer/laranail/env-kit
Requires
- php: ^8.4.1 || ^8.5
- ext-mbstring: *
- illuminate/auth: ^13.0
- illuminate/console: ^13.0
- illuminate/contracts: ^13.0
- illuminate/database: ^13.0
- illuminate/encryption: ^13.0
- illuminate/events: ^13.0
- illuminate/filesystem: ^13.0
- illuminate/notifications: ^13.0
- illuminate/pipeline: ^13.0
- illuminate/support: ^13.0
- illuminate/validation: ^13.0
- laranail/console: ^1.0
- laranail/package-tools: ^2.0
- vlucas/phpdotenv: ^5.6
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.0
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- pestphp/pest-plugin-mutate: ^4.0
- phpstan/phpstan: ^2.0
- rector/rector: ^2.0
- symfony/yaml: ^7.0 || ^8.0
Suggests
- symfony/yaml: Enables the `yaml` import/export format (Porter).
README
A view-less Laravel engine for reading and safely editing
.envfiles — one transactional, atomic, guarded, audited commit path behind a programmatic API, a CLI, and an interactive TUI.
PHP ^8.4.1 on Laravel ^13. It is the engine of the EnvKit family; the env-kit-webui companion drives it for the web.
Install
composer require laranail/env-kit
use Simtabi\Laranail\EnvKit\Headless\Facades\EnvKit; EnvKit::set('MAIL_HOST', 'smtp.acme.test'); // atomic · backed-up · audited $debug = EnvKit::getBool('APP_DEBUG', false); // typed read
Documentation
Full documentation is at opensource.simtabi.com/documentation/laranail/env-kit — format-preserving atomic writes, secret redaction + encryption-at-rest, schema validation, the guard/protection policy, the CLI, the interactive TUI, and configuration.
Contributing & security
Issues and PRs are welcome — see CONTRIBUTING.md. Report vulnerabilities per SECURITY.md (opensource@simtabi.com); participation follows the Code of Conduct.
License
MIT © Simtabi LLC. See LICENSE.