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
andcomposer.lock
and expose them from the configuration (#122, #124) - Infer information from the
composer.json
andcomposer.lock
files (#127) - Add a
--no-config
option for thecompile
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 thecompile
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 thecompile
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
toindex.phar
(#127) - When no configuration is provided or when the setting
main
is omitted, the value found incomposer.json#bin
will have the priority over the defaultindex.php
(#127) - When no configuraiton is provided or when the setting
output
is omitted, the default value will depend in theinput
value as opposed to systematicallydefault.phar
(#127)
BC breaks
- Change the default PHAR output from
default.phar
toindex.phar
(#127) - When no configuration is provided or when the setting
main
is omitted, the value found incomposer.json#bin
will have the priority
over the defaultindex.php
(#127) - When no configuraiton is provided or when the setting
output
is omitted, the default value will depend in theinput
value as opposed
to systematicallydefault.phar
(#127)