Skip to content

Releases: roots/wp-config

v2.0.0-beta.1

21 Mar 17:23

Choose a tag to compare

v2.0.0-beta.1 Pre-release
Pre-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

Initial Release

11 Aug 03:40
37c3823

Choose a tag to compare