endereco / endereco-oxid6-client
Package info
github.com/Endereco/endereco-oxid6-client
Type:oxideshop-module
pkg:composer/endereco/endereco-oxid6-client
Requires
- php: >=5.6
- ext-curl: *
- guzzlehttp/guzzle: ^6.3|^7.3.0
Requires (Dev)
- brainmaestro/composer-git-hooks: ^2.8
- phpmd/phpmd: ^2.10
- phpstan/phpstan: ^1.10
- squizlabs/php_codesniffer: 3.7.2
- dev-master
- 4.6.0
- 4.6.0-rc.3
- 4.6.0-rc.2
- 4.6.0-rc.1
- 4.5.5
- 4.5.5-rc3
- 4.5.5-rc2
- 4.5.4
- 4.5.3
- 4.5.3-rc1
- 4.5.2
- 4.5.1
- 4.5.0
- 4.4.1
- 4.4.0
- 4.3.2
- 4.3.2-rc.2
- 4.3.2-rc.1
- 4.3.1-rc.1
- 4.3.0
- 4.3.0-rc.1
- 4.2.2
- 4.2.2-rc.1
- 4.2.1
- 4.2.1-rc.3
- 4.2.1-rc.2
- 4.2.1-rc.1
- 4.2.0
- 4.2.0-rc.4
- 4.2.0-rc.3
- 4.2.0-rc.2
- 4.2.0-rc.1
- v4.1.1
- v4.1.0
- v4.0.0
- dev-release/4.6.0
- dev-staging
- dev-fix/addressCheckTrigger
- dev-feat/integrate-latest-js-sdk
- dev-feat/add-adminneo-to-playground
- dev-changes_for_next_release_4.5.6
- dev-feat/contribution
- dev-fix/O6M-70-bundeslandmapping-optimieren
- dev-o6m-4-migrationen-einbauen
- dev-O6M-7-das-modul-mit-oxid-63-kompatibel-machen
- dev-O6M-2-notwendigkeit-der-cleantmp-methode-in-installer-untersuchen
- dev-O6M-3-db-anpassungen-gehen-in-mariadb-104-nicht
- dev-O6M-1-doaccounting-beim-absenden-im-controller-auslosen
This package is auto-updated.
Last update: 2026-05-12 07:00:40 UTC
README
Contributing
For information on how to contribute to this project, please see our Contributing Guidelines.
Installation
The installation is done in the following steps:
-
Install the module via Composer
composer require endereco/endereco-oxid6-client
This command downloads the latest version. To install a specific version, for example 4.5.2, the command can be adjusted as follows:
composer require endereco/endereco-oxid6-client:4.5.2
-
Run migrations (optional)
By default, the Endereco-Oxid6 module automatically executes necessary database changes after activation. All adjustments are located in the Installer file in the onActivate method.
However, if you have at least version 6.2.3 of the shop and want to execute database changes via migrations, you can disable the default database adjustments.
For this, the following code must be added to the shop's config.inc.php file:
$this->bEnderecoUseMigrations = true;
From now on, the entire code block in onActivate will no longer be executed. After reinstalling the Endereco-Oxid6 module, as well as after each module update, migrations should be checked and possibly applied:
vendor/bin/oe-eshop-db_migrate migrations:migrate
-
Activate the module
In OXID admin panel: Extensions → Modules → Endereco → Activate
Development Setup
Prerequisites
- PHP 5.6 or higher
- Composer
- OXID eShop 6.1+ installation
- Nodejs and npm
- Git
Setting up the Development Environment
Important: Before setting up the development environment, make sure the module is properly installed via Composer first (see Installation section above). This ensures all autoload paths are registered correctly.
-
Fork and Clone the Repository
git clone https://github.com/your-username/endereco-oxid6-client.git cd endereco-oxid6-client -
Install Development Dependencies
composer install npm install
-
Set up Git Hooks (automatically runs quality checks before commits)
composer post-install-cmd
-
Link Module to OXID Shop
Note: The module must be installed properly first via
composer require endereco/endereco-oxid6-clientso that all paths are registered in the composer autoload.After proper installation, create a symlink from your OXID shop's modules directory to your development directory:
ln -s /path/to/your/endereco-oxid6-client /path/to/oxid/source/modules/endereco/endereco-oxid6-client
-
Activate the Module
In OXID admin panel: Extensions → Modules → Endereco → Activate
Development Workflow
-
Build Endereco Bundle
npm run build # Build the Endereco bundle -
Run Quality Checks
composer qa # Run all checks composer phpcs # Code style check only composer phpcbf # Auto-fix code style issues
-
Testing with Multiple OXID Versions
The project includes PHPStan configurations for different OXID versions:
phpstan.6.1.neon- OXID 6.1phpstan.6.2.neon- OXID 6.2phpstan.6.3.neon- OXID 6.3phpstan.6.4.neon- OXID 6.4phpstan.6.5.neon- OXID 6.5
-
Before Committing
Ensure all quality checks pass:
composer qa
Testing
Test the module with different OXID 6 versions using:
./playground.sh
The script will prompt for the following options:
- OXID version —
6.3,6.4, or6.5 - XDebug — enable step debugging on port 9003 (IDE must be in listen mode)
- Migration mode — test the
bEnderecoUseMigrations = truecode path instead of the defaultonActivate-based DB setup - Force rebuild — discard the cached Docker image and rebuild from scratch
The container starts on port 80. If the port is already in use, the script offers to stop the blocking container or choose an alternative port (81–89 or 8080–8089).
On first start the OXID shop is set up automatically (schema import, demo data, module activation). The shop shows a 500 error during setup — reload after a moment.
Log in to the OXID admin panel at http://localhost/admin with:
E-Mail: admin@example.com
Password: admin
In the admin panel, navigate to Extensions → Modules → Endereco and open the module configuration to enter a valid API key. You can request a test API key at endereco.de.
To stop the environment:
docker rm -f oxid-{version} oxid-{version}-db && docker network rm oxid-{version}-net
Scripts and Utilities
This repository includes several shell scripts to assist with development and testing.
Shell Scripts
playground.sh
Launches an interactive OXID 6 development environment in Docker.
Builds a Docker image with the selected OXID version (6.3, 6.4, or 6.5) and the module volume-mounted for live development. Handles port conflicts, optional XDebug setup, optional migration mode, and full auto-setup on first start.
./playground.sh
Access the shop at http://localhost/ and the admin panel at http://localhost/admin with credentials admin@example.com / admin.
fetch_shops.sh
Downloads OXID shop installations (6.1–6.5) into the shops/ directory using Docker.
These local shop copies provide the class stubs that PHPStan needs to analyse the module against each OXID version. Run this once after cloning or whenever you need to refresh the shops.
Requires Docker.
./fetch_shops.sh
check_phpmd.sh
Runs PHP Mess Detector on all project PHP files, excluding vendor/, shops/, and node_modules/.
Called automatically by composer phpmd and as part of composer qa.
./check_phpmd.sh
test_php_versions.sh
Checks PHP syntax compatibility by running php -l against PHP 7.0–8.1 using Docker images.
Called automatically by composer phpcompat and as part of composer qa.
Requires Docker.
bash test_php_versions.sh