Jump to content

Prestashop Validator Client

Recommended Posts



for those of you who are validating their modules on validator.prestashop.com and are interested in some automation (for example with some build or CI system like phing or Jenkins), there is a small validator client I wrote recently;

basically it allows to run validation directly via php script like this: 

require_once 'vendor/autoload.php';

$oClient = (new Kiwik\Prestashop\Validator\Client())
->setUser('[email protected]')

$oResult = $oClient->validate(__DIR__ . DIRECTORY_SEPARATOR . 'module.zip');

print PHP_EOL . $oResult->getInsightUrl(); // validator result page 
print PHP_EOL . $oResult->getErrorsCount(); // number of errors

Git repo & more details on : 








Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...