PHPackages                             magenit/magento2-customers-import - 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. magenit/magento2-customers-import

ActiveMagento2-module

magenit/magento2-customers-import
=================================

Import Customers from Json or CSV

1.0.0(2y ago)03OSL-3.0PHPPHP ~7.2.0||~8.1.0||~8.2.0||~8.3.0

Since Apr 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mage-nitin/customer-import)[ Packagist](https://packagist.org/packages/magenit/magento2-customers-import)[ Docs](https://github.com/mage-nitin/customer-import)[ RSS](/packages/magenit-magento2-customers-import/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Customer Import Module
======================

[](#customer-import-module)

### Requirement :

[](#requirement-)

We want you to write code that supports importing customers and their addresses. The requirement is to import from a sample CSV or JSON at present however the code should be written to support importing from other sources in future. We've intentionally used a slightly ambiguous term of "profiles" to allow for future scope e.g. two CSVs but with differing columns, hence two profiles.

The two sample files which you need to accomodate are provided.

The user interface to the code should be via a CLI command as below:

`bin/magento customer:import  `

So to import from the CSV and the JSON respectively the user would execute either one of the following (you can vary the command format slightly if you wish):

```
bin/magento customer:import sample-csv sample.csv
bin/magento customer:import sample-json sample.json

```

### Module To Consider :

[](#module-to-consider-)

- Neat and concise code that is well-written and easy to read
- Good architecture which supports the SOLID principles
- Specifically, the ability to add support for additional profiles via extension and not modification
- Adherence to the latest Magento standards
- Code that is your own (e.g. no copy-pasting), though the correct usage of libraries is encouraged via composer (any libraries used must be publically available)
- Your code should be unit tested as per good Engineering Practice

Dev Solution
============

[](#dev-solution)

Command has been modified, So we can get rid of passing 1 additional parameter "profile". Expecting the key=&gt;values in json and cav or any file furture extend must follow minimum requirement columns.

`bin/magento customer:import `

How to test
-----------

[](#how-to-test)

composer require magenit/magento2-customers-import php bin/magento setup:upgrade php bin/magento cache:clean store csv and json file in val/ImportExport directory (recommended and good approach)

### execute command :

[](#execute-command-)

#### php bin/magento ng:customers:import --profile-file=var/importExport/sample.csv

[](#php-binmagento-ngcustomersimport---profile-filevarimportexportsamplecsv)

Or/And

#### php bin/magento ng:customers:import --profile-file=var/importExport/sample.json

[](#php-binmagento-ngcustomersimport---profile-filevarimportexportsamplejson)

Verify Admin.

### Achieved Target in Requirement implementation(Module To Consider)

[](#achieved-target-in-requirement-implementationmodule-to-consider)

- Neat and concise code that is well-written and easy to read : yes
- Good architecture which supports the SOLID principles : yes
- Specifically, the ability to add support for additional profiles via extension and not modification : yes
- Adherence to the latest Magento standards : yes
- Code that is your own (e.g. no copy-pasting), though the correct usage of libraries is encouraged via composer (any libraries used must be publically available) : yes
- Your code should be unit tested as per good Engineering Practice : Partial but No (due to time constraint.)

### How To extend this module to support for additional profile whithout modifying code :

[](#how-to-extend-this-module-to-support-for-additional-profile-whithout-modifying-code-)

Create custom module and command. extends MageNit\\CustomersImport\\Model\\CustomerImport Major function to override

1. setAllowedFileExtension
2. prepareDataFromFile
3. prepareDataForProcessing (please follow customerInterface)

### What not Done

[](#what-not-done)

Unit testing not done, it takes more time and efforts, so due to time constraints it difficult to achieve in this test.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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

Unknown

Total

1

Last Release

761d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/648a739b06383d3da3097504536c11569a32c3995688fdcaa4d77638a044fe6c?d=identicon)[mage-nitin](/maintainers/mage-nitin)

---

Top Contributors

[![nitin-dinited](https://avatars.githubusercontent.com/u/115794161?v=4)](https://github.com/nitin-dinited "nitin-dinited (3 commits)")[![mage-nitin](https://avatars.githubusercontent.com/u/166670970?v=4)](https://github.com/mage-nitin "mage-nitin (1 commits)")

### Embed Badge

![Health badge](/badges/magenit-magento2-customers-import/health.svg)

```
[![Health](https://phpackages.com/badges/magenit-magento2-customers-import/health.svg)](https://phpackages.com/packages/magenit-magento2-customers-import)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[zepgram/module-rest

Technical module to industrialize API REST call with dependency injection pattern using Guzzle library

1326.2k](/packages/zepgram-module-rest)[graycore/magento2-graphql-introspection-cache

1015.2k](/packages/graycore-magento2-graphql-introspection-cache)[mage-os/mageos-common-async-events

Send REST requests to external endpoints asynchronously. This module implements the most common events like order creation and customer change.

147.7k2](/packages/mage-os-mageos-common-async-events)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

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