Kaudaj / kjmodulebedrock

Module bedrock for PrestaShop
Academic Free License v3.0
17 stars 4 forks source link

Module bedrock for PrestaShop

PHP tests GitHub release GitHub license

About

Tired of building module from scratch every time?
Not satisfied with the PrestaShop generator?
Want an up-to-date bedrock to start with?

Consider cloning this repository and start from kjmodulebedrock!

You can use it freely to develop and sell your own modules.

Essential features

Usage

Installation

Get started

git clone https://github.com/Kaudaj/kjmodulebedrock.git

# Then create your own module from it
cp -R kjmodulebedrock yourmodule
cd yourmodule
rm -rf .git
git init
composer install
cd _dev
npm install

Recommended: Automate the process

Here is a bash script to create a new module from kjmodulebedrock.
It uses fop:module:rename command from fop_console project to automate the "search/replace occurences" process. It will also link the local repository to your GitHub remote one if it exists.

It's highly recommended to create an alias for the create-new-module script in order to use it in all your PrestaShop projects. The instructions are available in this gist. Replace <your-command> by /path/to/create-new-module.sh and your-alias with whatever you want.
Make sure you are at the root of your PrestaShop environment and run the script like this:

your-alias PREFIX,ModuleClassName

# Example
ps-new-module KJ,MyModule

Configuration

Development

Here are some useful commands you could need during your development workflow:

Compatibility

PrestaShop >=1.7.8.0
PHP >=7.1 for production and >=7.3 for development
Multishop :heavy_check_mark:

License

Academic Free License 3.0.

Reporting issues

You can report issues in this very repository.

Contributing

As it is an open source project, everyone is welcome and even encouraged to contribute with their own improvements!

To contribute in the best way possible, you want to follow the PrestaShop contribution guidelines.

Contact

Feel free to contact us by email at info@kaudaj.com.