xpertselect / tools
XpertSelect package providing the tools and configurations for PHP development.
Installs: 10 139
Dependents: 17
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/xpertselect/tools
Requires
- php: ^8.2
- composer-runtime-api: ^2.2
- dg/bypass-finals: ^1.9
- mockery/mockery: ^1.6
README
XpertSelect package providing the tools and configurations for PHP development.
License
View the LICENSE.md file for licensing details.
Installation
Installation of xpertselect/tools is done via Composer.
composer require --dev composer-runtime-api ^2.2 xpertselect/tools
This is purely a development dependency, do not include this package as a runtime dependency!
Usage
Append the below instructions to composer.json to automatically create the latest configuration files when running
composer update:
{
"scripts": {
"post-update-cmd": [
"vendor/bin/xs-config --type={project-type} --force=false",
"vendor/bin/xs-dependencies"
]
}
}
The following {project-type}s are supported:
standardlaravel-projectlaravel-packagedrupal-projectdrupal-package
Set --force=true to always replace any existing configuration files. This will undo any local changes to these files!
Updating the package
When updating tools, it’s crucial to allow the package to override any existing generated files. This can be achieved either by removing the generated files or by using the force flag, as outlined above. Afterward, you can apply any necessary local changes to the configuration.