XpertSelect package providing the tools and configurations for PHP development.

Maintainers

Details

gitlab.com/xpertselect/tools

Source

Installs: 8 224

Dependents: 17

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

1.2.0 2024-01-16 10:08 UTC

README

gitlab.com/xpertselect/tools

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:

  • standard
  • laravel-project
  • laravel-package
  • drupal-project
  • drupal-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.