ps_eventbus
is a module companion for CloudSync.
PrestaShop platform | PHP | PS EventBus |
---|---|---|
8.0 | 7.1+ | From 2.x |
1.7.3-1.7.8 | 7.1+ | From 2.x |
1.7.2.5 | 7.1 | From 3.0.13 |
PS Accounts compatibility matrix can be viewed here.
make help # get help on how to use the awesome Makefile features
make # bundle all vendors required for the module to run
make zip # make a zip ready to be tested in PrestaShop (see ./dist)
Pro-tip: prefix all you make commands with the variables you want to override. Ie:
VERSION=v1.2.3-rc4 make zip-prod
to set the zip package to the desired version.
make lint # linting the code with vendor/bin/php-cs-fixer
make lint-fix # linting and fixing the code with vendor/bin/php-cs-fixer
make php-lint # linting with php
make phpunit # unit testing with vendor/bin/phpunit
make phpunit-cov # unit testing as above but with code coverage
make phpstan # linting the code with PrestaShop and vendor/bin/phpstan
make docker-<stuff> # same as above, but in a docker container
Note: you will need xdebug if you want to generate the code-coverage of this project. You may install it with:
pecl install -f xdebug
.
To check the module healthiness:
BASE_URL="http://localhost:8000"
curl -s -L "$BASE_URL/index.php?fc=module&module=ps_eventbus&controller=apiHealthCheck" | jq .
{
"prestashop_version": "1.6.1.24",
"ps_eventbus_version": "0.0.0",
"ps_accounts_version": "5.6.2",
"php_version": "7.1.33",
"ps_account": true,
"is_valid_jwt": true,
"ps_eventbus": true,
"env": {
"EVENT_BUS_PROXY_API_URL": "http://reverse-proxy/collector",
"EVENT_BUS_SYNC_API_URL": "http://reverse-proxy/sync-api"
},
"httpCode": 200
}
Dev requirements:
Or an up to date Docker engine.