radus28 / vtiger-module-creator
A quick solution for creating custom modules in Vtiger CRM
Requires
- php: >=7.3
- phploc/phploc: @stable
- phpmd/phpmd: @stable
- phpstan/phpstan: @stable
- squizlabs/php_codesniffer: @stable
This package is not auto-updated.
Last update: 2025-04-13 02:56:53 UTC
README
This is just a demo scripts collection to see how PHP linting can be implemented..
Note, there can be valid and invalid paths and commands which developer should modify according to their environment.
Radus28 / Module Creator is a sample PHP module created for vtiger crm to run and evaluate PHP Lint commands
Getting started
git clone https://gitlab.com/radus28/darko.git
cd darko
Run composer update
The extension installer.zip is created in the package root
Vtiger latest master version will be placed is pulled into same level of package folder.
Below packages will be installed
../vtigercrm - from vtiger official code base
installer.zip - Module Creator installer
phpmd -
vendor/bin/phpmd src/ScriptManiac.php text dev/phpmd/ruleset.xml
vendor/bin/phpmd src/ScriptManiac.php text cleancode,codesize,naming,controversial,unusedcode
phploc -
vendor/bin/phploc src/
phpstan -
vendor/bin/phpstan analyse src
phpcs -
vendor/squizlabs/php_codesniffer/bin/phpcs src/ScriptManiac.php
OR
vendor/squizlabs/php_codesniffer/bin/phpcs --standard=/dev/phpcs/ruleset.xml src/ScriptManiac.php
phpcpd -
php phpcpd.phar --fuzzy src/
user src/ScriptManiac.php for testing
Reference
https://phpqa.io/projects/phploc.html
https://phpstan.org/user-guide/getting-started
https://github.com/sebastianbergmann/phpcpd
https://andrewmackrodt.github.io/phpmd-ruleset-builder/#phpmd