PHP code example of hhennes / prestashop-console

1. Go to this page and download the library: Download hhennes/prestashop-console library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hhennes / prestashop-console example snippets


Show help of the command admin:user:list
prestashopConsoleWrapper.php?command=admin:user:list&options[]=help
List only active modules
prestashopConsoleWrapper.php?command=module:list&options[]=active
List only active modules not from prestashop
prestashopConsoleWrapper.php?command=module:list&options[]=active&options[]=no-native