Download the PHP package aeyoll/fop_console without Composer
On this page you can find all versions of the php package aeyoll/fop_console. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aeyoll/fop_console
More information about aeyoll/fop_console
Files in aeyoll/fop_console
Package fop_console
Short Description Add some console commands for PrestaShop 8.1.0+
License AFL-3.0
Informations about the package fop_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 using the Symfony console tool.
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)
Donwload a zip release and install it like any other module.
Alternatively, run this in a shell :
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.
Install the module in the backoffice or in command line like this :
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 categoriesfop:category:products-count
Get the number of products for category and its childrenfop:configuration:export
Export configuration values (from ps_configuration table)fop:configuration:import
Import configuration valuesfop:container:check
Health check of the Service Containerfop:customer-groups
Customer groupsfop:employee:list
List registered employeesfop:employee:change-password
Change employee passwordfop: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 developementfop:export:data
Allows to export data in XMLfop:generate:htaccess
Generate the .htaccess filefop:generate:robots
Generate the robots.txt filefop:group:transfer-customers
Transfers or add customers from a group to an otherfop:hook:add
Create hook in databasefop:image:generate:categories
Regenerate categories thumbnailsfop:image:generate:manufacturers
Regenerate manufacturers thumbnailsfop:image:generate:products
Regenerate products thumbnailsfop:image:generate:stores
Regenerate stores thumbnailsfop:image:generate:suppliers
Regenerate suppliers thumbnailsfop:module:generate
Scaffold new PrestaShop modulefop:module:hook
Attach one module on specific hookfop:module:hooks
Get modules listfop:module:non-essential
Manage non essential modulesfop:module:rename
Rename a modulefop:module:unhook
Detach module from hookfop:override:make
Generate a file to make an overridefop:product:latest
Displays the latest productsfop:shop:maintenance
Configure maintenance modefop:shop:status
Display shops statusesfop:theme:reset-layout
Reset current (or selected) theme
Create your owns Commands
The official documentation from PrestaShop and Symfony Core teams are still right, but you needs to extends our class.
Getting started
In a shell (call it shell, console or terminal), at the root of a Prestashop installation, type this command to list all available commands. You'll see commands provided by Symfony, Prestashop and installed modules.
To list only fop commands :
To toggle the debug-mode (_PS_DEVMODE) run :
To get help about a command :
You are ready to go !
Contribute
Any contributions are very welcome :) First Contributing for details.
Current contributors or contributors.
Compatibility
Prestashop Version | Compatible |
---|---|
1.7.4.x and below | :x: |
1.7.5.x | :heavy_check_mark: |
1.7.6.x | :heavy_check_mark: |
1.7.7.x | :heavy_check_mark: |
1.7.8.x | :heavy_check_mark: |
Php Version | Compatible |
---|---|
7.1 and below | :x: |
7.2 | :heavy_check_mark: |
7.3 | :heavy_check_mark: |
7.4 | :heavy_check_mark: |
8.0 | :interrobang: Not yet tested |
License
This module is released under AFL license. See License for details.
All versions of fop_console with dependencies
laminas/laminas-code Version 3.4.1
ext-json Version *
nette/php-generator Version ^3.6
pbergman/tree-helper Version ^1.0