NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2814 most downloaded on Packagist
Prefixes dependencies namespaces so they are unique to your plugin
Latest stable
0.31.1
Last release 1 months ago
08 Oct 2026
Ships on a steady schedule
a new release about every 4 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
73 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Treat packages which provide or replace another as dependencies of all other packages (partially revert string replacement optimization) by @BrianHenr
provide or replace another as dependencies of all other packages (partially revert string replacement optimization) by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/354, thanks @hansmorbFull Changelog: https://github.com/BrianHenryIE/strauss/compare/0.31.0...0.31.1
provide or replace another as dependencies of all other packages (partially revert string replacement optimization) by @BrianHenryIE in #354, thanks @hansmorbFull Changelog: 0.31.0...0.31.1
provide or replace another (e.g. nyholm/psr7) were not prefixed in packages which do not require them (e.g. php-http/discovery's candidate list), so discovery failed at runtimeYour coding agent can read these notes before it upgrades. Set up the MCP server →
Fix: Do not update call sites in the target directory by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/350, fix #344, thanks @@arjen-m
strauss dump-autoload command for use with include_root_autoload by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/353Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.30.0...0.31.0
strauss dump-autoload command for use with include_root_autoload by @BrianHenryIE in #353Full Changelog: 0.30.0...0.31.0
strauss dump-autoload for when include_root_autoload is enabledFix: PHP 8.6 deprecation warning "Returning from a finally block is deprecated" by @BrianHenryIE in #340
exclude_from_string_rename config option by @BrianHenryIE in #338Prefixer by @BrianHenryIE in #339 (I was hoping this PR would come with a performance improvement but it does not)builtinsymbols.php by @BrianHenryIE in #341, fix #324Full Changelog: 0.29.2...0.30.0
exclude_from_string_rename config option by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/338Prefixer by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/339 (I was hoping this PR would come with a performance improvement but it does not)builtinsymbols.php by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/341, fix #324Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.29.2...0.30.0
exclude_from_string_rename to exclude symbols from false-positive matches in stringsFileSymbolScanner → PhpFileAnalyzer), into a FileCodeMap on the File listing the symbols it defines and every symbol it uses, by typeChangePlanner pipeline step determines every edit to every file before any file is modified; Prefixer only applies the planned editsparallel config / --parallel=N), one per spare CPU; --debug logs how long each pipeline step took'Acme\\Widget\\'update_call_sites no longer treats the target directory as call sites when the project's autoload key lists it (e.g. "classmap": ["vendor-prefixed"]), which double-prefixed docblocksComposer\InstalledVersions etc.) are planned with every other change, so prefixing Composer's autoload files no longer rewrites every file a second timeFix: composer prefix-namespace script by @Xilonz in #327
composer prefix-namespace script by @Xilonz in #327Unable to realpath() when delete_vendor_packages and delete_vendor_files are both enabled by @BrianHenryIE in #337, thanks @leewillis77InstalledVersions entry in autoloader by @BrianHenryIE in #336Full Changelog: 0.29.1...0.29.2
composer prefix-namespace script by @Xilonz in https://github.com/BrianHenryIE/strauss/pull/327Unable to realpath() when delete_vendor_packages and delete_vendor_files are both enabled by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/337, thanks @leewillis77InstalledVersions entry in autoloader by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/336Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.29.1...0.29.2
realpath() failure when delete_vendor_packages and delete_vendor_files both enabledInstalledVersions in autoload_classmap.php, autoload_static.php was incorrectFix: After prefixing vendor-prefixed/composer/* , update references to InstalledVersions etc. throughout project
vendor-prefixed/composer/*, update references to InstalledVersions etc. throughout projectFile::setParsedAst(), ::getParsedAst())::isDoRename() on ::isAutoloaded(); improve AutoloadedEnumeratorstrauss.phar creation (allow list of known errors added)Full Changelog: 0.29.0...0.29.1
vendor-prefixed/composer/*, update references to InstalledVersions etc. throughout projectstrauss.phar creation (allow list of known errors added)File::setParsedAst(), ::getParsedAst())We copy all files, then enumerate all files and symbols that are autoloaded, apply exclusion rules, perform renames. Previously all defined namespaces were assumed to be renamed, now only those that are autoloaded are. One odd concession is when a function is defined in a global namespace in a file with an autoloaded class, everything in the file is renamed. We don't want to modify classes with custom autoloaders, e.g. Action Scheduler, or polyfills for other namespaces.
Add: Increase php-parser use by @BrianHenryIE in #278 Fix #112 , #300 . Thanks @Dartui , @paymentplugins
php-parser use by @BrianHenryIE in #278 Fix #112, #300. Thanks @Dartui, @paymentpluginsenum support by @BrianHenryIE in #317PrefixComposerAutoloadFilesCommand to prefix files generated by composer dump-autoloadSymlinkProtectFilesystemAdapter for extra protection from inadvertently deleting symlinked filesexclude_files_from_update configexclude_from_prefix – namespace was updating in class that matched file patternReadOnlyFileSystem to brianhenryie/bh-php-flysystem-readonly … by @BrianHenryIE in #313analyze-strict Composer script by @BrianHenryIE in #321Full Changelog: 0.28.1...0.29.0
php-parser use by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/278 Fix #112, #300. Thanks @Dartui, @paymentpluginsenum support by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/317PrefixComposerAutoloadFilesCommand to prefix files generated by composer dump-autoloadSymlinkProtectFilesystemAdapter for extra protection from inadvertently deleting symlinked filesexclude_files_from_update configexclude_from_prefix – namespace was updating in class that matched file patternReadOnlyFileSystem to brianhenryie/bh-php-flysystem-readonly … by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/313analyze-strict Composer script by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/321Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.28.1...0.29.0
exclude_files_from_updatePrefixComposerAutoloadFilesCommand to prefix files generated by composer dump-autoloadexclude_from_prefix – namespace was updating in class that matched file patternphp-parser more widelyenum supportWiden the versions of dependencies Strauss can be installed alongside. Mute deprecation warnings. Increase the PHP version tested in GtiHub Actions. I…
Widen the versions of dependencies Strauss can be installed alongside. Mute deprecation warnings. Increase the PHP version tested in GtiHub Actions. Improve performance when scanning symlinked packages.
Full Changelog: 0.28.0...0.28.1
Widen the versions of dependencies Strauss can be installed alongside. Mute deprecation warnings. Increase the PHP version tested in GtiHub Actions. Improve performance when scanning symlinked packages.
Thanks @dingo-d #288.
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.28.0...0.28.1
.gitignore and .gitattributeAdd: Skip .git directory and .gitignore and .gitattributes . export-ignore referenced files when enumerating by @BrianHenryIE in #297 , fix #254
.git directory and.gitignore and .gitattributes.export-ignore referenced files when enumerating by @BrianHenryIE in #297, fix #254Dependencies:
Full Changelog: 0.27.4...0.28.0
.gitignore, .gitattributes and exclude .git in symlinked packagesFix: mute deprecation warnings. 3436550 . Thanks @dingo-d , @DevinWalker
installed.json autoload key for symlinked packages in #292, thanks @DevinWalkerFull Changelog: 0.27.3...0.27.4
installed.json autoload key for symlinked packages in https://github.com/BrianHenryIE/strauss/pull/292, thanks @DevinWalkerFull Changelog: https://github.com/BrianHenryIE/strauss/compare/0.27.3...0.27.4
installed.json autoload key for symlinked packagesbrianhenryie/php-codecoverage-markdown in CIcomposer show in matrix to display installed versionsBugfix: Reindex installed.json package lists before writing by @paulgoodchild in #283
composer require composer/composer:"^2.10" -W by @BrianHenryIE in #287. Fix #285, #286. Thanks @defunctl @JUVOJustinFull Changelog: 0.27.2...0.27.3
composer require composer/composer:"^2.10" -W by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/287. Fix #285, #286. Thanks @defunctl @JUVOJustinFull Changelog: https://github.com/BrianHenryIE/strauss/compare/0.27.2...0.27.3
Fix fatal error when scanning template files with placeholder tokens by @iruzevic in #267
Full Changelog: 0.27.1...0.27.2
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.27.1...0.27.2
exclude_from_copy packagesFix #258 Duplicated classmap prefix by @BrianHenryIE in #259 thanks @remyperona
exclude_from_copy by @BrianHenryIE in #265 thanks @DevinWalkervendor in regexes in exclude_from_copy.file_patterns by @BrianHenryIE in #263Full Changelog: 0.27.0...0.27.1
exclude_from_copy by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/265 thanks @DevinWalkervendor in regexes in exclude_from_copy.file_patterns by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/263Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.27.0...0.27.1
exclude_from_copyexclude_from_copy.file_patternsFix: Only replace constants that are marked for renaming (isDoRename) by @AndrewJDawes in https://github.com/BrianHenryIE/strauss/pull/245
installed.json by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/250optimize_autoloader with backward-compatible config interface handling by @paulgoodchild in https://github.com/BrianHenryIE/strauss/pull/255Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.26.5...0.27.0
installed.json by @BrianHenryIE in #250optimize_autoloader with backward-compatible config interface handling by @paulgoodchild in #255Full Changelog: 0.26.5...0.27.0
installed.jsoninstalled.json entries for exclude_from_copy packagesoptimize_autoloader with backward-compatible config interface handlingFix: Incorrectly prefixing final class StatefulGeocoder implements Geocoder -> final class StatefulGeocoder implements BrianHenryIE\Geocoder
final class StatefulGeocoder implements Geocoder -> final class StatefulGeocoder implements BrianHenryIE\GeocoderIntegrationTestCase base class from tests/integration/util to testsfinal class StatefulGeocoder implements Geocoder -> final class StatefulGeocoder implements BrianHenryIE\GeocoderIntegrationTestCase base class from tests/integration/util to testsFixes re Windows file handling, incorrect settings parsing, inappropriate deletion of files
Fixes re Windows file handling, incorrect settings parsing, inappropriate deletion of files
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.26.3...0.26.4
exclude_from_copy incorrectly deleted when delete_vendor_packages is enabledexclude_from_copy.packages are still prefixedconstant_prefix key to plural settingNo functional changes, bugfixes or security patches, just refactoring.
No functional changes, bugfixes or security patches, just refactoring.
AbstractRenamespacerCommand superclass by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/229PadColonColumnsLogProcessor by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/231Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.26.2...0.26.3
Fix: namespaces not updated in non-autoloaded files by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/226, fix #225, thanks @eri-trabic
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.26.1...0.26.2
Fix: implicitly nullable warning
exclude_from_prefix code from AutoloadedFilesEnumerator to MarkSymbolsForRenaming to fix buganalyze-changes, cs-changes-strict...exclude_from_prefixing code from AutoloadedFilesEnumerator to MarkSymbolsForRenaming to fix buganalyze-changes, cs-changes-strict...Add option include_root_autoload by @MalIlluminated in https://github.com/BrianHenryIE/strauss/pull/216
include_root_autoload by @MalIlluminated in https://github.com/BrianHenryIE/strauss/pull/216vendor-prefixed/composer/autoload_classmap.php for packages selectively prefixed. 0a17bfaae8ffb59cd8ba8c9ee2d8edfec172c08f Thanks @circlecubepreg_match(): Delimiter must not be alphanumeric or backslash for exclude regexp patterns https://github.com/BrianHenryIE/strauss/commit/dead7d3ad1b8f99b4f8ac9e733a245d0e96ceb3dFull Changelog: https://github.com/BrianHenryIE/strauss/compare/0.25.0...0.26.0
include_root_autoload optionpreg_match(): Delimiter must not be alphanumeric or backslash for exclude regexp patternsvendor-prefixed/composer/autoload_classmap.php for packages not directly includedFix #207 #215 Copy all files by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/218 Thanks @LC43, @UVLabs
Where this isn't desired, it can be managed with:
"exclude_from_copy": {
"packages": [
"brianhenryie/exclude-entire-package"
],
"namespaces": [
"BrianHenryIE\\ExcludeNamespaceForSomeReason\\"
],
"file_patterns": [
"/^\..*/",
"/\.github/",
"/etc/"
]
},
Also closes #31, thank you @Spreeuw, @rickmacgillis, @alexmigf
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.24.1...0.25.0
Fix: inadvertently removing autoload keys from installed.json when target_directory is not vendor-prefixed by @BrianHenryIE in https://github.com/Bria
installed.json when target_directory is not vendor-prefixed by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/213exclude_from_prefix config option not working correctly. https://github.com/BrianHenryIE/strauss/commit/76e1ec8b04e9b5f2a92f125c2236a9c6a0eefe4d and moreInstalledJson::cleanTargetDirInstalledJson() https://github.com/BrianHenryIE/strauss/commit/c39ff98003725f531432aaeabde43eef405dcdd9conflict key to allow newer JsonMapper versions. See JsonMapper/JsonMapper#195, https://github.com/BrianHenryIE/strauss/commit/617ae22feabad75c010e6bb1d71cf71868c1ade0.gitattributes https://github.com/BrianHenryIE/strauss/commit/e925c58ae774158995d9f7417ab01947fbe0e309Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.24.0...0.24.1
installed.json when target_directory is not vendor-prefixedexclude_from_prefix config option not working correctlyInstalledJson::cleanTargetDirInstalledJson()conflict to allow newer jsonmapper versions.gitattributesAdd: Config option functions_prefix string|false to set or disable prefixing of global functions, fix #208, thanks @clifgriffin
functions_prefix string|false to set or disable prefixing of global functions, fix #208, thanks @clifgriffinfiles autoloader require twice by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/211Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.23.0...0.24.0
functions_prefix string|false config optioncomposer.json's autoload key when generating the vendor-prefixed autoloaderAdd: Read Composer custom config from environmental variable by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/205, fix #204, thanks @l
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.22.6...0.23.0
COMPOSER=custom.json environmental variablesimple-php-code-parser ^0.15.3Fix prefix contants by @0zd0 in https://github.com/BrianHenryIE/strauss/pull/202
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.22.5...0.22.6
LoggerInterface)Fix: Reliable prefixing of global functions by @0zd0 in https://github.com/BrianHenryIE/strauss/pull/197
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.22.4...0.22.5
Require simple-php-code-parser ^0.15.1 by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/192, fix #191, thanks @artulloss
simple-php-code-parser ^0.15.1 by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/192, fix #191, thanks @artullossStops using class_exists() when scanning php files for symbols
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.22.3...0.22.4
Filter 'implements' nodes on FullyQualified + add issue test by @Phennim in https://github.com/BrianHenryIE/strauss/pull/174, fix #172
"elazar/flystream": "^0.5.0|^1" by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/177, fix #171, #175, thank you @Dartui, @jcvignoli, @elazarperformReplacementsInProjectFiles() to only PHP files by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/176, fix #173, thank you @arjendejong12file_exists() check in edited vendor/autoload.php by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/182, fix 179, thank you @jcvignoliextends Composer\Autoload\AutoloadGenerator by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/168, fix #164, #163Thanks everyone. This was the biggest bugfix release we've ever had. I did end up forking voku/Simple-PHP-Code-Parser to BrianHenryIE/Simple-PHP-Code-Parser and I'm a little worried about the unknown-unknowns there. Particularly, the style of writing tests in the existing project isn't my typical style, so it won't be so fast and straightforward for me to address bugs. I do think using nikic/PHP-Parser (of which this is a wrapper) is the future of this project.
I've been working on Add SymlinkProtectFilesystemAdapter #170 to fix #64. To complete it I am working on a PR on Composer itself, https://github.com/composer/composer/pull/12396.
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.22.2...0.22.3
"elazar/flystream": "^0.5.0|^1"performReplacementsInProjectFiles() to only PHP filesfile_exists() check in edited vendor/autoload.phpextends Composer\Autoload\AutoloadGeneratorFix: files autoloaders not given unique fileIdentifiers by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/164. Thanks @andreagrillo
files autoloaders not given unique fileIdentifiers by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/164. Thanks @andreagrillopsr-0 autoloaders not loaded because no added directory structure to match added prefix; solved by adding to classmap by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/164Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.22.1...0.22.2
psr-0 autoloaders were no longer autoloaded because the directory structure did not matchfiles autoloaders failed when not unique (the whole point of this tool)Constrain json-mapper/json-mapper https://github.com/BrianHenryIE/strauss/commit/3cc60fd87cc21e046babb672de78230cebd7ece3
See: https://github.com/JsonMapper/JsonMapper/issues/195
Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.22.0...0.22.1
This release is the most significant refactor + improvements to date. Give --dry-run a whirl. NB: Use ^0.22.1!
This release is the most significant refactor + improvements to date. Give --dry-run a whirl. NB: Use ^0.22.1!
--dry-run command & verbose logging by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/139$workingDir from pipeline steps by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/152. Fix #143 Thanks @LC43composer.config when creating vendor-prefixed autoloader by @BrianHenryIE in https://github.com/BrianHenryIE/strauss/pull/160. Fix #159 Thanks @LC43Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.21.1...0.22.0
--info, --debug and --silent verbosity levels--dry-run which runs with --debug output but does not write filesautoload_aliases.php file for dev dependencies to load modified classes using their original fqdncomposer.jsonthephpleague/Flysystem and elazar/flystream for file operationsREADME.mdFix: global functions prefixed too liberally, https://github.com/BrianHenryIE/strauss/commit/4da8e8e00c2b298d906e6c05d3efe25b50248d52, thanks @defunct
Breaking change: now prefixes global functions.
Breaking change: now prefixes global functions.
Fix: vendor-prefixed _subdirectories_' permissions being copied as 0700 instead of 0755 by @defunctl in https://github.com/BrianHenryIE/strauss/pull/1
vendor-prefixed subdirectories' permissions being copied as 0700 instead of 0755 by @defunctl in https://github.com/BrianHenryIE/strauss/pull/130 Thanks @estevao90 for (a missed) reportThe next (non-bugfix) release will prefix global functions. Since that's a breaking change for long-term users, I will wait to test it more: https://g…
Generic<\namespaced\class-type> not prefixed. Thanks @ravinderk https://github.com/BrianHenryIE/strauss/commit/e05eb3354773b60ad499e334935da53ed2c0eabdstrauss replace command (e.g. if you fork a project and want to change its namespace). Fix #125 ReplaceCommand.phpThe next (non-bugfix) release will prefix global functions. Since that's a breaking change for long-term users, I will wait to test it more: https://github.com/brianhenryie/strauss/compare/e661e94f4ed7bcf6b96053e45dcd35cc1e5293d3...ac404b3c38b5c6feabe43983f90887ce33726081
Generic<\namespaced\class-type> not prefixedstrauss replace command (e.g. if you fork a project and want to change its namespace)Add gitattributes file by @dingo-d in https://github.com/BrianHenryIE/strauss/pull/122
use GlobalClass as Alias; not prefixed.gitattributes file to exclude dev files from distributionbin/strauss version number is out of syncDiscoveredFiles.phpREADME.mdFix: out of sync version number in bin/strauss (I forgot to update the CHANGELOG before the last release)
bin/strauss (I forgot to update the CHANGELOG before the last release)Fix #114, handle @ symbol for error suppression. Thanks @Razorbacktrack https://github.com/BrianHenryIE/strauss/compare/7212a4dd8ec397095c59023591681b
preg_replace... returning null in Licenser. Thanks @Razorbacktrack https://github.com/BrianHenryIE/strauss/commit/6ba3d09071d877ddad0f1487f580d4b5985b18f2@ symbol for error suppressionpreg_replace... returning null in LicenserFix: available CLI arguments were overwriting composer.json extra.strauss config, PR #109 thanks @Dartui
composer.json extra.strauss config, PR #109 thanks @Dartuileague/flysystem changed the default directory permissions, c9fa47e48196a044b55b69b978c5cf653628f271 #104 thanks @estevao90league/flysystem changed the default directory permissionsFix: was incorrectly deleting autoload keys from installed.json Fix #101 https://github.com/BrianHenryIE/strauss/commit/07c4945864bc0381919380bb0a0aff
installed.json Fix #101 https://github.com/BrianHenryIE/strauss/commit/07c4945864bc0381919380bb0a0affb5702d162d Thanks @leewillis77Mostly a bugfix release but added a little too.
Mostly a bugfix release but added a little too.
bin/strauss PR #97 Thanks @szepeviktorscripts/createphar.sh; run tests with project classes + with built phar https://github.com/BrianHenryIE/strauss/commit/34cc59f42a11887c7fa35d54e57500ff3e74b79fsymfony/console & symfony/finder ^7 for Laravel 11 compatibility PR #102 Thanks @arjen-mediasoepbin/strausssymfony/console & symfony/finder ^7 for Laravel 11 compatibilityscripts/createphar.shAdd: GitHub Action to update bin version number from CHANGELOG.md Fix #90. https://github.com/BrianHenryIE/strauss/commit/1874b3b1abf6fabd0dc296fc8e9f
composer dump-autoload error after delete-vendor-files/delete-vendor-packages Fix #87, #93. https://github.com/BrianHenryIE/strauss/commit/f53236b08dd05a05921043e72b1c1bc156d20472. Thanks @estevao90, @JUVOJustinUndefined offset when seeing namespace. Fix #91. https://github.com/BrianHenryIE/strauss/commit/7c3212061578d78fa1236ca69eeb0ec435f6520d. Thanks @sovetskiAdd --deleteVendorPackages=true CLI argument, thanks @defunctl https://github.com/BrianHenryIE/strauss/commit/73d2d3e1e8bd2d73d53e489f7dd19506a6dcbf14
--deleteVendorPackages=true CLI argument, thanks @defunctl https://github.com/BrianHenryIE/strauss/commit/73d2d3e1e8bd2d73d53e489f7dd19506a6dcbf14Full Changelog: https://github.com/BrianHenryIE/strauss/compare/0.16.0...0.17.0
Do not prefix built-in PHP classes. https://github.com/BrianHenryIE/strauss/commit/1bd20b75a4e6b5c07a428c04e8b9e514034b6b5c Fix #79
Breaking change:
This will affect polyfill libraries, where they define classes with the same name as newer PHP versions.
Fix:
files autoloaders' files against exclude_from_copy/file_patterns https://github.com/BrianHenryIE/strauss/commit/6ab4064cff2086d6a1a9cb285ae2f051e4b9883a Fix #67files autoloaders' files and deleting them, Composer's autoloader was trying to autoload the deleted files #34delete_vendor_files now correctly deletes empty subdirsinstanceof ... https://github.com/BrianHenryIE/strauss/commit/67f471ab47fe9025e040ab0116f03b410bfbb7dcstr_starts_with() was causing duplicate prefixes #34^2.1|^3.0 https://github.com/BrianHenryIE/strauss/commit/014faac79d7e2e896f24ded10eebf277c538765a #39deleteVendorPackages is true. #64Most of the changes are around using vendor as the target-directory. Fixing #52 @evrpress, #34 @coder-at-heart @pbowyer And using Strauss to update ca
Most of the changes are around using vendor as the target-directory. Fixing #52 @evrpress, #34 @coder-at-heart @pbowyer
And using Strauss to update call sites of the prefixed packages, i.e. to make introducing Strauss to an existing project much easier.
This can be done with strauss --updateCallSites=true or setting the update_call_sites key to true or an array of paths in the Composer / extra / strauss config.
Thanks to @tobeyadr @groundhoggwp
\GlobalClass in PhpDoc replacement was deleting functionnamespace keyword on same line as <?php. #80 Thanks @justlevineDocumentation:
composer dump-autoload note. Thanks @defunctlMove PHP from require to require-dev. Thanks @TimothyBJacobs
PHP from require to require-dev. Thanks @TimothyBJacobs\. Fix #65. Thanks @kodieuseing global class, enable calling via new and old name inside namespace with use Prefix_GlobalClass as GlobalClass;. Fix #66. Thanks @tn3rbuse function MyFunc;. Fix #75. Thanks @danieliser['7.4', '8.0'] -> ['7.4', '8.0', '8.1', '8.2', '8.3'] and add Windows (aspirational).Add: delete_vendor_packages option (delete_vendor_files is maybe deprecated now). Thanks @danieliser
delete_vendor_packages option (delete_vendor_files is maybe deprecated now). Thanks @danieliserpsr/* from file_patterns prefixing. Related to #27in-situ branch (bugs expected). Related to #34 #52 FAO: @pbowyerin-situ branch (bugs expected)delete_vendor_packages option (delete_vendor_files is maybe deprecated now)psr/* from file_patterns prefixingAdd the ability to store the strauss.phar file in any directory. It must be called from the project root directory containing the composer.json the /e
strauss.phar file in any directory. It must be called from the project root directory containing the composer.json the /extra/strauss config is saved in. @JasonTheAdamsFix: failed when psr-4 namespace key contained array of directories #37
target_directory is now vendor-prefixedunset the $strauss_src directory that is used when registering the classmap in the generated autoload.php.Use latest shivammathur/setup-php in Actions. Fix #38. Thanks @igibek
Add include_modified_date and include_author options for disabling in PHP header #29 @Spreeuw #35 @adrianstaffen
include_modified_date and include_author options for disabling in PHP header #29 @Spreeuw #35 @adrianstaffen/ in classmap and files autoloader paths (partial fix) #30 @ Spreeuwexclude_from_prefix/file_patterns defaults were lost when exclude_from_prefix/packages was set #32Fix: incorrect classname replacing inside namespace names and namespaced code, #27 Thanks @alexmigf
Fix: bug where namespaces inside namespaces were being replaced (due to [^\s]* matching) #26 Thanks @adrianstaffen
[^\s]* matching) #26 Thanks @adrianstaffenMore improvements on namespaced static function calls #25 Thanks @adrianstaffen
Fix: symlinked packages broken in last update
Now handles meta-packages and virtual-packages #22 Thanks @Flickwire
New: now respects composer.json configured vendor directory. Thanks @Flickwire
file_patterns exclusionFix: ChangeEnumerator was matching classnames in comments. #19 Thanks @Spreeuw
Fix files autoloader attempting to autoload non-PHP files (probably only a problem when using override_autoload)
files autoloader attempting to autoload non-PHP files (probably only a problem when using override_autoload)Fix: Do not prefix inside strings that have spaces #15 Thanks @zackkatz
\s to \s+ etc and commentsFix: attempting to copy non-existent mozart script to bin folder (old configuration updated)
mozart script to bin folder (old configuration updated)One column per quarter.