PHPackages                             catgento/magento-2-category-importer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. catgento/magento-2-category-importer

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

catgento/magento-2-category-importer
====================================

Category Importer for Magento 2

1.0.7(6y ago)31.3k1[1 issues](https://github.com/catgento/magento-2-category-importer/issues)OSL-3.0PHPPHP ~7.1.3||~7.2.0||~7.3.0

Since Apr 4Pushed 5y ago2 watchersCompare

[ Source](https://github.com/catgento/magento-2-category-importer)[ Packagist](https://packagist.org/packages/catgento/magento-2-category-importer)[ RSS](/packages/catgento-magento-2-category-importer/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

Magento Category Importer for Magento 2 &gt;= 2.1.x
===================================================

[](#magento-category-importer-for-magento-2--21x)

This is a Magento module which adds a new command to the bin/magento shell to import categories from a CSV file.

It has been copied from , but I've removed the new category attribute creation (which is specific for the developer who created the module).

I have also included a custom Magento 1 export shell script () so that you can generate the csv file from your Magento 1 installation.

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

[](#installation)

### Composer

[](#composer)

```
    composer require catgento/magento-2-category-importer

```

### ZIP file

[](#zip-file)

Download the module and unzip it under the folder app/code/Catgento/CategoryImporter.

How to use it
-------------

[](#how-to-use-it)

### Create a CSV file with the categories information

[](#create-a-csv-file-with-the-categories-information)

Mandatory columns:

```
id
name
parent_id
is_active
is_anchor
include_in_menu
custom_use_parent_settings
description

```

Optional columns:

```
meta_title
meta_keywords
meta_description
url_key
url_path

```

You can also add custom columns and specify them when calling the script.

#### Magento 1 shell script to export the Categories

[](#magento-1-shell-script-to-export-the-categories)

Copy the shell script from this gist  (exportCategoriesCsv.php) in the shell/ folder of your Magento 1 installation. You only need to execute it from inside that folder and put the output inside csv file like this:

```
php exportCategoriesCsv.php > categories_m1.csv

```

Note:

- This script replaces '"' by '«' and '»'. There are better ways, but I preferred doing it that way to avoid scaping issues.

### Import the CSV file in Magento 2

[](#import-the-csv-file-in-magento-2)

As explained in the Macomedia module, you can use this module by:

```
bin/magento import:categories [--path|-p ] [--additional|-a ]
bin/magento import:categories -p var/import/categories-example.csv
bin/magento import:categories -p var/import/categories-example.csv -a my_custom_attribute1,my_custom_attribute2,my_custom_attribute3

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

2229d ago

PHP version history (2 changes)1.0.5PHP ~5.5.0|~5.6.0|~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0

1.0.0PHP ~7.1.3||~7.2.0||~7.3.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506393?v=4)[Pau Iranzo](/maintainers/PauGNU)[@paugnu](https://github.com/paugnu)

---

Top Contributors

[![paugnu](https://avatars.githubusercontent.com/u/506393?v=4)](https://github.com/paugnu "paugnu (10 commits)")

### Embed Badge

![Health badge](/badges/catgento-magento-2-category-importer/health.svg)

```
[![Health](https://phpackages.com/badges/catgento-magento-2-category-importer/health.svg)](https://phpackages.com/packages/catgento-magento-2-category-importer)
```

###  Alternatives

[ethanyehuda/magento2-cronjobmanager

A module for managing scheduled cron jobs from magento's admin panel

3632.5M1](/packages/ethanyehuda-magento2-cronjobmanager)[baldwin/magento2-module-url-data-integrity-checker

Magento 2 module which can find potential url related problems in your catalog data

281773.3k](/packages/baldwin-magento2-module-url-data-integrity-checker)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69344.4k](/packages/run-as-root-magento2-prometheus-exporter)[magepal/magento2-customeraccountlinksmanager

Customer Account Links Manager for Magento2 allows you to quickly and easily remove unwanted links from customer account dashboard

4084.9k](/packages/magepal-magento2-customeraccountlinksmanager)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)

PHPackages © 2026

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