myparcelnl / devtools
Dev tools for linting and analysing php projects.
Installs: 1 275
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 5
Requires
- php: >= 7
- phpmd/phpmd: >= 2.0
This package is auto-updated.
Last update: 2024-11-13 12:06:42 UTC
README
These tools are used to make a consistent php workflow.
Installation
composer require --dev myparcelnl/devtools
Included tools
Configuration
PHPMD
Create a new file in your project root called phpmd.xml
.
Paste the following content into it:
<?xml version="1.0"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="MyParcel" xmlns="http://pmd.sf.net/ruleset/1.0.0" xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 https://pmd.sourceforge.io/ruleset_xml_schema.xsd" xsi:noNamespaceSchemaLocation="https://pmd.sourceforge.io/ruleset_xml_schema.xsd"> <description /> <rule ref="vendor/myparcelnl/devtools/phpmd.xml"> <exclude name="StaticAccess" /> </rule> </ruleset>
Then set up your IDE so PHPMD inspections are enabled.