PHPackages                             ph2m/logistic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ph2m/logistic

ActiveMagento2-module

ph2m/logistic
=============

Manage imports/exports

1.1.9(1y ago)913.7k↓46.4%2[3 issues](https://github.com/PH2M/logistic/issues)GPL-3.0PHP

Since Mar 19Pushed 1y ago4 watchersCompare

[ Source](https://github.com/PH2M/logistic)[ Packagist](https://packagist.org/packages/ph2m/logistic)[ Docs](https://github.com/PH2M/logistic)[ RSS](/packages/ph2m-logistic/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (27)Used By (0)

PH2M\_Logistic
--------------

[](#ph2m_logistic)

Manage your imports / exports.

Requirements
------------

[](#requirements)

Magento &gt;= 2.1.0

Installation
------------

[](#installation)

```
composer config repositories.firegento_extendedimport2 vcs https://github.com/firegento/FireGento_ExtendedImport2
composer require ph2m/logistic
bin/magento module:enable FireGento_FastSimpleImport FireGento_ExtendedImport PH2M_Logistic
bin/magento setup:upgrade

```

Console commands
----------------

[](#console-commands)

You can launch the imports by typing the following commands:

```
# Products import
bin/magento logistic:import:products

# Stocks import
bin/magento logistic:import:stocks

```

Launch tests
------------

[](#launch-tests)

```
vendor/phpunit/phpunit/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/ph2m/logistic

```

To do list
----------

[](#to-do-list)

- Complete unit tests
- Add WS connection type

Add another import
------------------

[](#add-another-import)

The following steps are for a new import class but they are the same for an export one. Just use export class/folders instead.

- Create a class which extends the `PH2M\Logistic\Model\Import\AbstractImport` class
- In this class, add a `code` variable
- Add in your `system.xml` these configurations (replace `` by your `code` variable value):
    - `_enable`: a `select` with a `Magento\Config\Model\Config\Source\Yesno` source model
    - `_path`: a `text` field
    - `_file_pattern`: a `text` field
    - `_archive_path`: a `text` field
- If necessary, override the `columnsToIgnore` variable to ignore some columns
- If necessary, override the `columnsToRename` variable to rename some header columns to real product attributes codes: ```
    /**
     * @var array
     */
    protected $columnsToRename = [
        'columnFromFile' => 'newColumnName'
    ];

    ```
- If necessary, override the `columnsFixedValue` variable to add some fixed values (attribute set if it's not defined in your CSV file for example)

Add a custom object import
--------------------------

[](#add-a-custom-object-import)

If you want to import a custom object (stores from a store locator for example), override the `_launchImporter` method in your import class. This method should return an array which has a `success` and a `message` (in case of error) value.

Add another export
------------------

[](#add-another-export)

- Create a class which extends the `PH2M\Logistic\Model\Export\AbstractExport\` class
- In this class, add a `code` variable
- If you don't want to create a file for each exported object, set the `createAFileForEachObject` variable to false
- Override `_getFileName` function to set the export file name
- Override `_initObjectsToExport` function to return the objects to export
- Add in your `system.xml` these configurations (replace `` by your `code` variable value):
    - `_enable`: a `select` with a `Magento\Config\Model\Config\Source\Yesno` source model
    - `_path`: a `text` field
- XML files are not supported at the moment, if you want to export as XML you have to override the `_exportObjects` function and send an empty header to `_createAndSendFile`

Local import
------------

[](#local-import)

Local import must be placed in `/var` directory. You can next setup your import and archive paths like in the distant imports.

Licence
-------

[](#licence)

[GNU General Public License, version 3 (GPLv3)](http://opensource.org/licenses/gpl-3.0)

Troubleshooting
---------------

[](#troubleshooting)

```
This file does not contain any data.

```

I have seen this issue because I was trying to import a product attribute which had a code in camel case, ie `MyAttribute`. Replace it by `my_attribute`. It can also happen if your data has a bad format, ie you're trying to import an array as value.

Special thanks
--------------

[](#special-thanks)

Special thanks to Firegento and all contributors to the [FastSimpleImport extension](https://github.com/firegento/FireGento_FastSimpleImport2)!

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance25

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 82.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~104 days

Recently: every ~252 days

Total

23

Last Release

690d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b4c69244b1708a52abc673bf25f8cb16734dfa268adaaff787ae715df8a2159?d=identicon)[ph2m\_vma](/maintainers/ph2m_vma)

---

Top Contributors

[![VincentMarmiesse](https://avatars.githubusercontent.com/u/1949412?v=4)](https://github.com/VincentMarmiesse "VincentMarmiesse (38 commits)")[![LucasPellegrino](https://avatars.githubusercontent.com/u/36302307?v=4)](https://github.com/LucasPellegrino "LucasPellegrino (7 commits)")[![awvdu](https://avatars.githubusercontent.com/u/88391759?v=4)](https://github.com/awvdu "awvdu (1 commits)")

---

Tags

exportimportmagento2

### Embed Badge

![Health badge](/badges/ph2m-logistic/health.svg)

```
[![Health](https://phpackages.com/badges/ph2m-logistic/health.svg)](https://phpackages.com/packages/ph2m-logistic)
```

###  Alternatives

[ctidigital/magento2-configurator

Keep magento persistently configured using files

174317.4k](/packages/ctidigital-magento2-configurator)[yireo/magento2-replace-inventory

51493.3k1](/packages/yireo-magento2-replace-inventory)[yireo/magento2-replace-bundled

Replace bundled third party packages from Magento

45335.0k1](/packages/yireo-magento2-replace-bundled)[magenest/core

Magenest Core

12327.8k13](/packages/magenest-core)[magento/project-community-edition

eCommerce Platform for Growth (Community Edition)

854.3k3](/packages/magento-project-community-edition)[yireo/magento2-replace-graphql

1660.1k](/packages/yireo-magento2-replace-graphql)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
