Jump to content

Prestashop Validator Client


Tomasz Słomiński
 Share

Recommended Posts

Hello

 

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]')
->setPassword('password');

$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 : 

 

https://bitbucket.org/kiwik/pvc-public

 

 

 

ts.

 

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More