PHPackages                             dadolun95/magento2-category-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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. dadolun95/magento2-category-import

ActiveMagento2-module[PDF &amp; Document Generation](/categories/documents)

dadolun95/magento2-category-import
==================================

Category Import by csv module

1.0.0(5y ago)7884↓43.8%OSL-3.0PHP

Since Jun 30Pushed 3y ago2 watchersCompare

[ Source](https://github.com/dadolun95/magento2-category-import)[ Packagist](https://packagist.org/packages/dadolun95/magento2-category-import)[ RSS](/packages/dadolun95-magento2-category-import/feed)WikiDiscussions master Synced 1mo ago

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

Dadolun\_CategoryImport module for Magento 2 [![magento](https://avatars.githubusercontent.com/u/168457?s=40&v=4)](https://avatars.githubusercontent.com/u/168457?s=40&v=4)
===========================================================================================================================================================================

[](#dadolun_categoryimport-module-for-magento-2-)

Category importer from CSV file. This is a basic example and startup for more detailed category imports. Allows to import / update categories from Magento shops. Generates and updates categories by specified textual path. Path also defines hierarchy between categories.

### Features

[](#features)

- Adds category\_code attribute for mapping
- Import categories from uploaded csv file matching paths made with category names
- Works only for admin store, categories are generated as available for each store

Install module
--------------

[](#install-module)

- add module via composer or download and copy files to app/code/Dadolun/CategoryImport
- run bin/magento module:enable Dadolun\_CategoryImport in command line

How to extend
-------------

[](#how-to-extend)

This module is easily extendible adding additional attribute on import. Steps you should do:

- Add your columns to the csv
- Add category\_import.xml file on your custom module like this:

```

    ...

```

- Make a plugin on Dadolun\\CategoryImport\\Model\\Importer\\Category manageAdditionalCategoryData method

Your method must add data to the loaded Category like manageAdditionalCategoryData original method. You can change the order of the additional attributes setting the "sort" attribute on column tags. Keep in mind that the original csv structure has 5 columns so you must start from column 6 with your attributes.

Usage
-----

[](#usage)

***NOTICES:***

- keep in mind that parent categories must specified first or you'll get errors on execution
- use comma (',') as delimiter in file or change it by configuration on Stores &gt; Configuration &gt; Dadolun &gt; Category Import

Basic usage example
-------------------

[](#basic-usage-example)

```
bin/magento dadolun:import:categories

```

Simple CSV file example
-----------------------

[](#simple-csv-file-example)

```
category_code,path,sort_order,is_active,description
a_category,"A Category",999,1,"A Category Description"
c_category,"A Category,C Category",999,1,"C Category Description"
d_category,"A Category,D Category",999,1,"D Category Description"
e_category,"A Category,D Category,E Category",999,0,"E Category Description"
b_category,"B Category",999,1,"B Category Description"

```

Contributing
------------

[](#contributing)

Contributions are very welcome. In order to contribute, please fork this repository and submit a [pull request](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b5954eb97063d31291e987862ba4430556417d38a2081e1e1d1131303961e46?d=identicon)[dadolun95](/maintainers/dadolun95)

---

Top Contributors

[![dadolun95](https://avatars.githubusercontent.com/u/8927461?v=4)](https://github.com/dadolun95 "dadolun95 (13 commits)")

---

Tags

csvimportmagentomagento2-categorymagento2-import

### Embed Badge

![Health badge](/badges/dadolun95-magento2-category-import/health.svg)

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

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[setasign/tfpdf

This class is a modified version of FPDF that adds UTF-8 support. The latest version is based on FPDF 1.85.

426.1M30](/packages/setasign-tfpdf)

PHPackages © 2026

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