Download the PHP package timdev/devtools without Composer
On this page you can find all versions of the php package timdev/devtools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download timdev/devtools
More information about timdev/devtools
Files in timdev/devtools
Package devtools
Short Description A common development dependency for TimDev projects.
License MIT
Informations about the package devtools
timdev/devtools
What's this?
A little package to try to standardize a set of development tools for PHP projects. Probably not of interest to anyone who isn't working on projects with me.
Including this package as a dev-dependency gets you:
- PHPUnit for testing.
- Psalm for static analysis.
- PHPStan for another flavor of static analysis.
- PHP_CodeSniffer for linting
- Roave Security Advisories to help avoid depending on packages with vulnerabilities.
Along with config files for each.
Motivation
The key motivation is to be able to share configurations for things like psalm, php_cs, and phpunit between my projects, and keep things largely in sync.
Assumptions
This package assumes your code is in src/
and your tests are in tests/
. It
further assumes that you want psalm and phpcs to be run on your test sources.
Usage
Set minimum-stability
:
Add this package a dev-dependency:
Run the setup script which will copy the three config files into your project root:
Psalm is configured to use a baseline file, and will complain if there isn't
one. If you project does not already have a psalm-baseline.xml
file in its
root directory, devtools-setup
will install an empty baseline file for you, so
that psalm will run without error.
Local Tweaks
Do not make changes to any of the .xml.dist
files installed by
devtools-setup
. Your changes will be overwritten during an upgrade. Instead,
you should add non-.dist
versions.
Upgrading
Since the main point of this package is to manage local configuration for
various tools, you should re-run vendor/bin/devtools-setup
after upgrading
this package.
Inspiration
I created this package after experimenting with ramsey/devtools, which is an incredibly cool thing. But I wanted something more focused on our needs at TimDev Software.
All versions of devtools with dependencies
ext-json Version *
captainhook/captainhook Version ^5.10
ergebnis/composer-normalize Version ^2.15
lctrs/psalm-psr-container-plugin Version ^1.4
phpunit/phpunit Version ^9.5
psalm/plugin-phpunit Version ^0.16.1 || ^0.18.0
roave/security-advisories Version dev-latest
squizlabs/php_codesniffer Version ^3.6
vimeo/psalm Version ^4.9 || ^5.0