oxid-esales / developer-tools
The component contains developer tools.
Installs: 242 045
Dependents: 7
Suggesters: 0
Security: 0
Stars: 2
Watchers: 14
Forks: 0
Open Issues: 0
Type:oxideshop-component
- dev-b-8.0.x
- dev-master
- v2.4.1
- v2.4.0
- v2.3.1
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.0
- v1.1.0
- v1.0.1
- v1.0.0
- dev-b-8.0.x-remove-OXDEV-7790
- dev-b-7.3.x-update-phpunit-dependency-OXDEV-7947
- dev-b-7.2.x
- dev-b-7.3.x
- dev-b-7.1.x
- dev-b-8.0.x-no-config-inc-OXDEV-7248
- dev-b-7.1.x-investigate
- dev-b-7.0.x-new_dev_recipes-OXDEV-7845
- dev-b-7.0.x
- dev-b-7.0.x-gha-psr
- dev-b-8.0.x-dt-gha
- dev-b-7.0.x-dt-gha-php-cs
- dev-detached
- dev-b-6.5.x
- dev-b-6.5.x-update-github-action-OXDEV-6742
- dev-b-6.2.x
This package is auto-updated.
Last update: 2024-11-05 08:27:58 UTC
README
This component contains additional developer tools for OXID eShop.
Installation
Run the following command to install the component:
composer require oxid-esales/developer-tools
Usage
Resetting project configuration
To reset project configuration to its initial state execute:
bin/oe-console oe:module:reset-configurations
Resetting/installing shop database
To reset the database to its initial state run the following command:
bin/oe-console oe:database:reset --db-host DB-HOST --db-port DB-PORT --db-name DB-NAME --db-user DB-USER --db-password DB-PASSWORD [--force]
Which:
- <db-host> is the database host
- <db-port> is the database port
- <db-name> is the database name
- <db-user> is the database username
- <db-password> is the database password
- [<force>] (optional) if set runs the command without confirmation
Example:
bin/oe-console oe:database:reset --db-host=localhost --db-port=3306 --db-name=test --db-user=test --db-password=test
ATTENTION: After running this command, all your data will be deleted from the database. Never run this command on life system.
Activating theme
To activate theme execute:
bin/oe-console oe:theme:activate THEME-ID
How to install component for development?
Checkout component besides OXID eShop source
directory:
git clone https://github.com/OXID-eSales/developer-tools.git
Run composer install command:
cd developer-tools
composer install
Add dependency to OXID eShop composer.json
file:
composer config repositories.oxid-esales/developer-tools path developer-tools
composer require --dev oxid-esales/developer-tools:*
How to run tests?
To run tests for the component please define OXID eShop bootstrap file:
vendor/bin/phpunit --bootstrap=../source/bootstrap.php tests/
License
See LICENSE file for license details.