Skip to content

PHPWind v1.6.0

Latest

Choose a tag to compare

@leorsousa05 leorsousa05 released this 21 Aug 16:30
· 3 commits to main since this release

What's new in v1.6.0

Framework-agnostic config loading

  • Added PHPWind\Config\Env helper to read environment variables without Laravel helpers.
  • Added PHPWind\Config\ConfigLoader to load and validate PHPWindConfig from any PHP config file.
  • Rewrote the shipped config/phpwind.php with relative paths and Env::get(), so it works in vanilla PHP and Symfony as well as Laravel.
  • Laravel PHPWindServiceProvider now resolves shipped relative defaults back to Laravel absolute paths.

Change-aware dev middleware

  • Added PHPWind\ChangeDetection\FileChangeDetector.
  • OnDemandCompilerMiddleware now recompiles only when the input CSS changes (mtime|size fingerprint). Unchanged dev requests skip the process spawn entirely.
  • Opt-out with checkForChanges=false to keep the previous always-compile behavior.

Captured process output

  • Added PHPWind\Binary\ProcessResult.
  • Runner::runResult() captures stdout/stderr concurrently while Runner::run() stays backward-compatible.
  • CompilationResult now exposes stdout and stderr for easier debugging of CLI failures.
  • Watch mode still streams directly to parent stdio.

Configurable asset public directory

  • AssetHelper::css(), the global phpwind_css() helper, and the Twig phpwind_css() function now accept an optional publicDir parameter.

Cleanup

  • Removed duplicated v3/v4 branches in PlatformResolver::getBinaryName().

Verification

  • Full PHPUnit suite passes: 82 tests, 132 assertions.