Run PHP Scoper
Version updated for https://github.com/WPTechnix/run-php-scoper to version v1.0.0.
- This action is used across all versions by ? repositories.
Action Type
This is a Composite action.
Go to the GitHub Marketplace to find the latest changes.
What’s Changed
v1.0.0
Initial release of the PHP-Scoper Action, a composite GitHub Action for scoping PHP project dependencies using humbug/php-scoper.
What’s Included
PHP version selection: Choose any PHP version using
php-version(default:8.2).Flexible PHP-Scoper versions: Use a specific release tag, version constraint, or branch with
scoper-version.Custom working directory: Run the action from any subdirectory within your repository.
Configurable PHP-Scoper configuration: Specify the path to
scoper.inc.phpusing a relative or absolute path.Optional Composer installation: Skip
composer installwhen thevendor/directory already exists.Custom Composer arguments: Pass additional Composer options through
composer-args.Early validation: Validate the working directory, configuration file, and PHP version before installing dependencies.
Action outputs:
output-path: Absolute path to the generated scoped build.scoped-files: Total number of scoped PHP files.