We earn commission when you buy through affiliate links.

This does not influence our reviews or recommendations.Learn more.

Find security risk and code quality in your PHP tool.

php-market-share

PHP rules the web, with around80% of the market share.

Its everywhere WordPress, Joomla, Lavarel, Drupal, etc.

As a best practice, you should consider performing a security scan against your utility before going live.

pmf

This applies to any site small or big.

There are some tools to help you with that.

It is known to detect dodgy, encoders, obfuscators, web shellcode.

rips

PMF leverage YARA, so you need that as a pre-requisite to initiate the test.

you could categorize the finding by industry compliance and standard to prioritize the fixes.

Lets take a look at some of the following features.

sonarsource

It is available as a self-hosted and SaaS model.

So choose what works for you.

SonarPHP

SonarPHPby SonarSource uses pattern matching, data flow techniques to find vulnerabilities in PHP codes.

exakat

It is a static code analyzer and integrates with Eclipse, IntelliJ.

SonarSource checks the code against more than 140 rules, and it also supports custom rules written in Java.

There are framework-specific analyzers likeWordPress, CakePHP, Zend, etc.

phpstan-example

With the robust reporting, you’re able to prioritize the remediation.

PHPStan

PHPStanis a fantastic tool to find bugs as you write the code.

You dont need to run anything.

psalm

you’ve got the option to try the online versionhere.

PHPStan requires 7.1 or higher version and composer to use it.

However, it is capable of discovering bugs from an older version.

symfony

It supports suiteCRM and CodeIgniter framework at the moment.

Grabber

Grabber, a python based tool to perform hybrid analysis on a PHP-based program using PHP-SAT.

Symfony

Security Monitoring bySymfonyworks with any PHP project using the composer.

It is a PHP security advisory database for known vulnerabilities.

Symfony also offers a security notification service.

Conclusion

I hope by using the above tools, you make your PHP applications more secure.