Module Artisan : The Code Generator


Module prestashop pour votre site e-commerce

An intelligent code generator for PrestaShop 1.7+ to speed up your development process.

Les plus de ce module Prestashop

Vous fait gagner du temps
Nothing

Ce que vos clients aimeront

Nothing

Installation

You can install this module from a shell using the symfony console provided with PrestaShop.
    
    php bin/console prestashop:module install artisan

Autre

This module was developed by the official french prestashop trainer on module development and theme integration. The code generated by this tool respects the validation criteria of PrestaShop modules.

Caractéristiques

This tool will help developers generate resources like modules, controllers, grid, forms, routes, and services. It is extremely flexible and customizable to cover many on the use cases.

This module is for developers only.

  • Create PrestaShop module
  • Create modern symfony CRUD controllers (1.7.6+)
  • Create model from existing table in database
  • Generate multi-language applications
  • Create full resources using a single command
  • Create very clean, reusable and highly readable code to build on
  • Extracts the strings to translate from a module and creates the translation files
  • etc.

This tools provides lots of commands throught the Symfony console.
All commands must be launched from a command interpreter and from the prestashop installation root folder.

List of command

    php bin/console artisan:configuration:delete {name}
    php bin/console artisan:configuration:set {name} {value}
    php bin/console artisan:debug:disable
    php bin/console artisan:debug:enable 
    php bin/console artisan:module:admin:controller:create {moduleName} {controllerName}
    php bin/console artisan:module:admin:crudcontroller:create {moduleName} {modelName}
    php bin/console artisan:module:admin:form:create {moduleName} {modelName}
    php bin/console artisan:module:admin:legacycontroller:create {moduleName} {modelName}
    php bin/console artisan:module:create {moduleName}
    php bin/console artisan:module:front:controller:create {moduleName} {controllerName}
    php bin/console artisan:module:hook:list {moduleName}
    php bin/console artisan:module:hook:register {moduleName} {hooks}
    php bin/console artisan:module:hook:unregister {moduleName} {hooks}
    php bin/console artisan:module:install {moduleName}
    php bin/console artisan:module:list [--active|--not-active|--installed|--not-installed]
    php bin/console artisan:module:model:create {moduleName} {modelName}
    php bin/console artisan:module:translation:update {moduleName} --subdomain [Admin|Shop]
    php bin/console artisan:module:uninstall {moduleName}
    php bin/console artisan:module:views:copy {moduleName} {themeName} [overwrite={Ask|Yes|No}]
    php bin/console artisan:module:zip {moduleName}
    php bin/console artisan:override:disable
    php bin/console artisan:override:enable
    php bin/console artisan:override:class {className} {functionName}
    php bin/console artisan:shop:disable
    php bin/console artisan:shop:enable 
    php bin/console artisan:sql:load {filePathAndName} 
    php bin/console artisan:sql:snapshot {snapshotName}
    php bin/console artisan:sql:restore {snapshotName}
    php bin/console artisan:theme:create:child {themeName}

The list of commands may vary depending on the version of the artisan module.

Recommandations

Do not use on a production server.

Nouveautés de la version 1.2.1(06/04/2020)

  • Update Webpack to version 4.42 and Babel to version 7.8
  • Update package.json, webpack.config.js, css.config.js and js.config.js for WebPack 4.42 and Babel 7.8
  • Uses code snippet for automatic creation of hook code
  • New commands

Support et mises à jour

Lors de l'achat, votre abonnement Business Care de votre première année est automatiquement inclus, puis reconduit tacitement à la fin de la période.

Vous pouvez résilier votre abonnement à tout moment, avant la fin de la période en cours.

Les services inclus dans votre abonnement

  • Mises à jour sécurité
  • Mises à jour compatibilité
  • Évolutions et futures fonctionnalités
  • Support illimité

Vous souhaitez avoir plus de détails? Découvrez les questions les plus fréquemment posées autour de Business Care.


A propos

Développeur

Ancienneté

10/03/2018

Pays

India

Langues du support

EN