Download exakat
Download and install Community Edition
Install Exakat and its dependencies
Create a folder; download exakat in that folder then run the install command.
mkdir exakat
cd exakat
curl -o exakat.phar 'https://www.exakat.io/versions/index.php?file=latest'
php exakat.phar install -v
After the installation, Exakat displays its current configuration. You can review it quickly to check if it fits.
Run the first audit
After installation, you are ready to run a first audit. Here is a small example to run an audit. You can use it to ensure that all is ready, before running on your own code.
// Init the code for the audit
php exakat.phar init -p sculpin -R https://github.com/sculpin/sculpin;
// run the audit itself
php exakat.phar project -p sculpin -v
After the audit, open the file called ‘projects/sculpin/report/index.html’ in your browser. This is the Diplomat audit, with a preselection of interesting rules.
Other exakat installations
5 thoughts on “Download and install Community Edition”
Comments are closed.
Pingback: Automated PHP directive checklist before launch - Exakat
Pingback: PHP 7 migration audit with Exakat Engine - Exakat
Pingback: 3 Open source PHP 7 Static analysis tools - Exakat
Pingback: More private properties for my classes - Exakat
Pingback: Confusing variable names - Exakat