Commit 58ccee10 authored by zaporylie's avatar zaporylie Committed by claudiu.cristea

Issue #2844521 by zaporylie, claudiu.cristea: Do not suggest adding composer requirements manually

parent 9270797b
......@@ -8,7 +8,28 @@ The module provides a migrate source plugin for importing data from spreadsheet
## Installing PHPSpreadsheet
Usually we use [Composer](https://getcomposer.org/) to install dependencies in Drupal 8. Unfortunately, the `composer.json` file provided in the module root directory is not automatically parsed when the module gets enabled. For this reason, before installing the module, relevant lines from that file should be copied in the project top `composer.json` file. The entries under `"repositories"`, `"require"` and `"autoload"` > `"psr-4"` should be copied under the same arrays, in the top project's `composer.json`. Then a `$ composer update` should be issued.
Usually we use [Composer](https://getcomposer.org/) to install dependencies in Drupal 8. All you need to do is to add this module as dependency in your project top `composer.json` file:
```json
{
...
"require": {
...
"drupal/migrate_spreadsheet": "~1.0-beta2",
...
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
...
],
...
}
```
Then a `$ composer update` should be issued and Composer will install the [PhpOffice/PhpSpreadsheet](https://github.com/PHPOffice/PhpSpreadsheet) dependency.
## Usage
......
......@@ -12,25 +12,7 @@
"Spreadsheet",
"Excel"
],
"repositories": [
{
"type": "package",
"package": {
"name": "phpoffice/phpspreadsheet",
"version": "0.0",
"dist": {
"url": "https://github.com/PHPOffice/PhpSpreadsheet/archive/develop.zip",
"type": "zip"
}
}
}
],
"require": {
"phpoffice/phpspreadsheet": "~0.0"
},
"autoload": {
"psr-4": {
"PhpOffice\\PhpSpreadsheet\\": "vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet"
}
"phpoffice/phpspreadsheet": "dev-master"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment