techdivision / import-adapter-custom
M2IF library providing a basic Magento 2 array adapter import functionality
dev-master
2020-06-24 18:38 UTC
Requires
- php: >=7.1.0
- paquettg/php-html-parser: 2.1.0
- techdivision/import: 16.*
Requires (Dev)
- consolidation/robo: ~1.0
- doctrine/dbal: 2.5.*
- mikey179/vfsstream: ~1.0
- pdepend/pdepend: 2.5.2
- phpmd/phpmd: @stable
- phpunit/phpunit: ~6.5.0
- sebastian/phpcpd: ~3.0.0
- squizlabs/php_codesniffer: ~3.4.0
- symfony/http-kernel: ~3.4
This package is auto-updated.
Last update: 2024-10-25 05:30:20 UTC
README
Requirements
- PHP 7.2+
- M2IF >= 3.8.*
Setup
To make the custom adapter run two simple steps are necessary.
Step 1: Installation
You can either use the PHAR file or add M2IF to your Magento installation by adding
{ "require": { "techdivision/import-adapter-custom": "dev-master as 1.0.0" } }
to your composer.json
file.
Step 2: Configuration
Copy the etc
directory from the root directory of this library to the app/etc/
directory of your Magento installation, e. g.
cd <magento install directory> && cp -r vendor/techdivision/import-custom-adapter/etc/* app/etc/
Step 3: Run
You're now ready to run the custom adapter. Aassuming that the HTML file data/some.html
will be reachable via your localhost
like https://localhost/some.html
enter the following command
vendor/bin/import-simple import:products custom --params='{"params":{"url":"https://localhost/some.html"}}'
whereas the url has to point to the HTML file the additional data will be located in.