- Setup a GitHub account, if you haven't yet.
- Fork the project (i.e from the github project page).
- Clone your newly created fork:
$ git clone https://github.com/<username>/openstore-schema-core.git
- Install deps
$ composer update
Make a copy of the distribution config file and edit your database parameters:
$ cp ./config/openstore-schema-core.config.php.dist ./config/openstore-schema-core.config.php
# Edit database parameters
$ vi ./config/openstore-schema-core.config.php
$ mysql -e "CREATE DATABASE openstore_test CHARACTER SET='utf8mb4' COLLATE='utf8mb4_unicode_ci';" -u {USER} -p
$ ./bin/openstore-schema-core openstore:schema:create
- Create a new branch from master (i.e. name your branch like
feature/24
orhotfix/25
) - Make the code changes...
- Good to check the schema diff:
$ ./bin/openstore-schema-core openstore:schema:update
- First ensure the code is clean
$ composer cs-fix
$ composer phpstan
- Don't forget to generate raw sql
$ composer generate-sql
-
Don't forget to update the
CHANGELOG.md
-
Commit/push your changes.