Skip to content

v2.0.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@retlehs retlehs released this 21 Mar 17:23
· 1 commit to master since this release

Breaking Changes

  • Fluent configuration API replaces the static Config::define()/Config::apply() approach
  • PHP 8.3+ is now required
  • env() string values are now coerced to native PHP types ("true"true, "123"123, etc.)

Before (1.x):

Config::define('DB_NAME', env('DB_NAME'));
Config::define('DB_USER', env('DB_USER'));
Config::apply();

After (2.x):

$config = Config::make(__DIR__)
    ->bootstrapEnv()
    ->env('DB_NAME')
    ->env('DB_USER')
    ->apply();

See the README for a fully working config for Bedrock

What's Changed

Full Changelog: 1.0.0...v2.0.0-beta.1