Skip to content

3.0.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@theofidry theofidry released this 23 Apr 09:17
db1ea6f

A few new features have been added to the compile command to ease the experience as well as trying to infer as much information as possible from the composer.json and composer.lock files in order to avoid as much configuration as a possible.

A brand new requirement checker has also been added to allow PHARs to check that the environment they are being executed in are properly configured for them.

Backward Compatibility (BC) break changes are tracked in UPGRADE.md.

Features

  • Allow to add non existent (binary or not) file to the PHAR if the content is provided (#120, #125, #138 )
  • Make the scoping prefix unique with using PHP-Scoper (#121)
  • Always include the root composer.json and composer.lock and expose them from the configuration (#122, #124)
  • Infer information from the composer.json and composer.lock files (#127)
  • Add a --no-config option for the compile command which allows to completely ignore any
    configuration file found
  • Make compilation faster in debug mode (#142)
  • A new --no-parallel option has been added to the compile command to not process the files in
    parallel instead of doing so only in debug mode (#142)
  • A new --no-restart option has been added to the compile command to not restart the PHP process
    allow more easily to keep xdebug enabled (#142)
  • Add a constraint checker in the built PHARs(#116)

Bugfixes

  • Fix PHP-Scoper isolated finder not found when using the finders setting in the PHP-Scoper configuration (#130)
  • The verbosity for the compile command is now forced to debug earlier when the debug mode is enabled. This ensures the new verbosity set applies to the process restart check (#142)
  • Fixed missing files when using multiple append (#144)
  • Correctly display the compactor class in the scoped PHAR (#147)

Misc changes

  • Simplify the PHP-Scoper integration (#121)
  • Change debug directory from .box to .box_dump (#136)
  • Change the default PHAR output from default.phar to index.phar (#127)
  • When no configuration is provided or when the setting main is omitted, the value found in composer.json#bin will have the priority over the default index.php (#127)
  • When no configuraiton is provided or when the setting output is omitted, the default value will depend in the input value as opposed to systematically default.phar (#127)

BC breaks

  • Change the default PHAR output from default.phar to index.phar (#127)
  • When no configuration is provided or when the setting main is omitted, the value found in composer.json#bin will have the priority
    over the default index.php (#127)
  • When no configuraiton is provided or when the setting output is omitted, the default value will depend in the input value as opposed
    to systematically default.phar (#127)