PHPackages                             aeyoll/fop\_console - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. aeyoll/fop\_console

ActivePrestashop-module[CLI &amp; Console](/categories/cli)

aeyoll/fop\_console
===================

Add some console commands for PrestaShop 8.1.0+

2.0.0(2y ago)01AFL-3.0PHPPHP ^7.2.5

Since Feb 27Pushed 2y agoCompare

[ Source](https://github.com/aeyoll/fop_console)[ Packagist](https://packagist.org/packages/aeyoll/fop_console)[ RSS](/packages/aeyoll-fop-console/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

[![Minimum PHP Version](https://camo.githubusercontent.com/4f9eddea3b5f90bdf4c2f6feafb71962a03512fd923888e4aef358cf6334daf7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e322d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![PHP tests](https://github.com/aeyoll/fop_console/actions/workflows/phpstan.yml/badge.svg)](https://github.com/aeyoll/fop_console/blob/dev/.github/workflows/phpstan.yml)[![GitHub release](https://camo.githubusercontent.com/3b50e731cf0072c2000ddba62ef624149709e6a822ff53410b1abd3497c70981/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6165796f6c6c2f666f705f636f6e736f6c65)](https://github.com/aeyoll/fop_console/releases)[![Slack chat](https://camo.githubusercontent.com/29296e6b08d5d649aa2ddf65d011fc732bcf380bf87ecf27cf71f7726ca8dddf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436861742d6f6e253230536c61636b2d726564)](https://github.com/aeyoll/who-we-are#what-we-do)

Friends of Presta Console
=========================

[](#friends-of-presta-console)

Fop console is a module which provides a set a commands to extend PrestaShop 8.1 commands.

Since version 1.7.5.0 [Prestashop provides some terminal commands](https://devdocs.prestashop.com/1.7/modules/concepts/commands/) using the [Symfony console tool](https://symfony.com/doc/3.4/console.html).

This repository provides a base Command with better support for PrestaShop legacy classes and useful commands to easy the development on Prestashop or manage a shop. These commands are mainly for developers, just some basic knowledge of command line processing is needed.

Install from release (recommended)
----------------------------------

[](#install-from-release-recommended)

[Donwload a zip release](https://github.com/aeyoll/fop_console/releases) and install it like any other module.

Alternatively, run this in a shell :

```
#!/bin/bash
wget https://github.com/aeyoll/fop_console/releases/latest/download/fop_console.zip --output-document /tmp/fop_console.zip && unzip /tmp/fop_console.zip -d modules && ./bin/console pr:mo install fop_console
```

Install from sources
--------------------

[](#install-from-sources)

If you want use the dev branch, you can install from github. If you want to contribute, first create a fork and follow the same steps using your forked repository url instead of the original one.

```
cd modules
git clone https://github.com/aeyoll/fop_console.git
cd fop_console
composer install

```

Install the module in the backoffice or in command line like this :

```
cd ../../
php bin/console pr:mo install fop_console

```

Current commands
----------------

[](#current-commands)

- `fop:about:version` Display the Fop Console version (on disk, on database, latest available release)
- `fop:cache:clear` Replace the cache directory with an empty one.
- `fop:category:clean` Manage empty categories
- `fop:category:products-count` Get the number of products for category and its children
- `fop:configuration:export` Export configuration values (from ps\_configuration table)
- `fop:configuration:import` Import configuration values
- `fop:container:check` Health check of the Service Container
- `fop:customer-groups` Customer groups
- `fop:employee:list` List registered employees
- `fop:employee:change-password` Change employee password
- `fop:environment:debug-mode` Enable or Disable debug mode.
- `fop:environment:get-parameters` Display information about the installation (db name, etc)
- `fop:environment:setup-dev` Install your project for local developement
- `fop:export:data` Allows to export data in XML
- `fop:generate:htaccess` Generate the .htaccess file
- `fop:generate:robots` Generate the robots.txt file
- `fop:group:transfer-customers` Transfers or add customers from a group to an other
- `fop:hook:add` Create hook in database
- `fop:image:generate:categories` Regenerate categories thumbnails
- `fop:image:generate:manufacturers` Regenerate manufacturers thumbnails
- `fop:image:generate:products` Regenerate products thumbnails
- `fop:image:generate:stores` Regenerate stores thumbnails
- `fop:image:generate:suppliers` Regenerate suppliers thumbnails
- `fop:module:generate` Scaffold new PrestaShop module
- `fop:module:hook` Attach one module on specific hook
- `fop:module:hooks` Get modules list
- `fop:module:non-essential` Manage non essential modules
- `fop:module:rename` Rename a module
- `fop:module:unhook` Detach module from hook
- `fop:override:make` Generate a file to make an override
- `fop:product:latest` Displays the latest products
- `fop:shop:maintenance` Configure maintenance mode
- `fop:shop:status` Display shops statuses
- `fop:theme:reset-layout` Reset current (or selected) theme

Create your owns Commands
-------------------------

[](#create-your-owns-commands)

The official documentation from PrestaShop and Symfony Core teams are still right, but you needs to extends our class.

```
