Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/archtaqi/php-metrics

PhpMetrics Static analyzer tool for PHP Customize, Installed using Ansible
https://github.com/archtaqi/php-metrics

ansible jenkins php phpcs phpmd phpstan static-code-analysis

Last synced: 21 days ago
JSON representation

PhpMetrics Static analyzer tool for PHP Customize, Installed using Ansible

Awesome Lists containing this project

README

        

PHP Metrics
===========

Install php analysers like phpmd, phpcs, phpstan, phplint, phpcpd, ext.

### Setup in Your Project

```bash
mkdir -p etc/ansible/common && mkdir -p etc/ansible/requirements

cat > etc/ansible/requirements.yml << EOF
- name: common-php-metrics
src: https://github.com/muhammadtaqi/php-metrics.git
scm: git
EOF

cat > etc/ansible/metrics.yml << EOF
---
- hosts: localhost
connection: local

roles:
- { role: common-php-metrics }
EOF

cat > etc/ansible.cfg << EOF
[defaults]
roles_path=ansible/common
EOF
```

## Run ansible playbook

```bash
cd ./etc/
ansible-galaxy install -r ansible/requirements.yml -p ansible/common --force
ansible-playbook ansible/metrics.yml --limit=localhost --flush-cache
```