Download the PHP package maarsson/dev-tools without Composer
On this page you can find all versions of the php package maarsson/dev-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package dev-tools
maarsson/dev-tools
Development QA toolchain bundle for my projects.
[!NOTE] See also maarsson/coding-standard.
About
This package is a Composer metapackage that installs a curated set of development and code-quality tools together with shared coding standards.
Installing this package will pull in:
phpmd/phpmd– PHP Mess Detector (PHPMD) - detect design and complexity issuessquizlabs/php_codesniffer– PHP CodeSniffer (PHPCS) - detect coding standard violationsslevomat/coding-standard– Slevomat Coding Standard - additional PHPCS checksfriendsofphp/php-cs-fixer– PHP CS Fixer - automatically enforce modern code stylelarastan/larastan– Larastan - catches both obvious & tricky bugsphpro/grumphp– GrumPHP - run configured code-quality checks before commitsmaarsson/coding-standard– Centralized standards - shared coding standards and sync tooling - follow its project configuration instructions to enable automatic ruleset synchronization and Git hooks.
By following the installation steps below, the rulesets from the installed version of maarsson/coding-standard are automatically applied after composer install and composer update in your project. This guarantees that all projects use the exact same ruleset versions.
The extra.frontend-tools setting defines the npm dependencies for ESLint including Stylistic, Stylelint, TypeScript, Vue, SCSS, and Tailwind support. The coding-standard sync script adds them to the consuming project's devDependencies and creates the eslint, eslint:fix, stylelint, and stylelint:fix scripts.
Requirements
- PHP ^8.4
- Composer
- For the frontend tools: npm and Node.js
^22.13.0 || >=24
Installation
1. Package installation
Install the package as a development dependency in your project:
These plugin permissions must be configured in the consuming project's composer.json. They are not inherited from this metapackage. The PHPCS installer registers the Slevomat standard, and the GrumPHP plugin installs Git hooks.
2. Project configuration (required)
To ensure the coding standards are applied automatically, you must configure Composer scripts in the target project.
2.1. Add a named sync script
In your project’s composer.json add:
2.2. Run the sync script on install and update
Extend your project’s composer.json scripts section to include:
With this setup, the coding standards are applied automatically.
2.3. Install the frontend tools
Composer install/update synchronizes package.json but does not install npm packages. The sync script displays a reminder when it updates package.json.
After the initial sync, and whenever a toolchain update changes the npm dependencies, install them manually in the consuming project:
Commit the resulting package.json and package-lock.json together.
In CI, run npm ci --ignore-scripts after Composer installation to install from the committed lockfile.
Usage
For more info please read the maarsson/coding-standard package's readme.
Design philosophy
maarsson/dev-toolsdefines what tools are installedmaarsson/coding-standarddefines how rulesets are applied- The project decides when commands run
This separation keeps behavior explicit, predictable, and Composer-idiomatic.
License
MIT
All versions of dev-tools with dependencies
friendsofphp/php-cs-fixer Version ^3.95
larastan/larastan Version ^3.10
maarsson/coding-standard Version ^2.0
php-parallel-lint/php-parallel-lint Version ^1.4
phpmd/phpmd Version ^3.0
phpro/grumphp Version ^2.25
shipmonk/dead-code-detector Version ^1.4
slevomat/coding-standard Version ^8.31
squizlabs/php_codesniffer Version ^4.0