PHPackages                             thousandmonkeys/m2-flatcategories-module - 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. [API Development](/categories/api)
4. /
5. thousandmonkeys/m2-flatcategories-module

ActiveMagento2-module[API Development](/categories/api)

thousandmonkeys/m2-flatcategories-module
========================================

A flat category rest endpoint for magento2 to work round the stupidity that is the default tree interface.

v1.0.1(8y ago)2204[1 issues](https://github.com/lingwooc/flatCategory-magento2/issues)OSL-3.0PHP

Since Apr 4Pushed 8y ago2 watchersCompare

[ Source](https://github.com/lingwooc/flatCategory-magento2)[ Packagist](https://packagist.org/packages/thousandmonkeys/m2-flatcategories-module)[ RSS](/packages/thousandmonkeys-m2-flatcategories-module/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

flatCategory-magento2
=====================

[](#flatcategory-magento2)

A flat category rest endpoint for magento2 to work round the stupidity that is the default tree interface. This just gives a list of all categories with searchCriteria supported to make caching and lookups easy, instead of hard and annoying.

Installation
============

[](#installation)

- composer require thousandmonkeys/m2-flatcategories-module
- php bin/magento deploy:mode:set developer
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- php bin/magento deploy:mode:set production
- php bin/magento maintenance:disable

Usage
=====

[](#usage)

GET rest/V1/flatCategories?searchCriteria Response:

```
{
  "items": [
    {
      "id": 0,
      "parent_id": 0,
      "name": "string",
      "is_active": true,
      "position": 0,
      "level": 0,
      "children": "string",
      "created_at": "string",
      "updated_at": "string",
      "path": "string",
      "available_sort_by": [
        "string"
      ],
      "include_in_menu": true,
      "extension_attributes": {},
      "custom_attributes": [
        {
          "attribute_code": "string",
          "value": "string"
        }
      ]
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "condition_type": "string"
          }
        ]
      }
    ],
    "sort_orders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "page_size": 0,
    "current_page": 0
  },
  "total_count": 0
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

2953d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a00bd3b8c4f6b3cd7d309befea5afb3224e1d391e58128bec3bfc259ee2e01fd?d=identicon)[lingwooc](/maintainers/lingwooc)

---

Top Contributors

[![lingwooc](https://avatars.githubusercontent.com/u/9419862?v=4)](https://github.com/lingwooc "lingwooc (12 commits)")

### Embed Badge

![Health badge](/badges/thousandmonkeys-m2-flatcategories-module/health.svg)

```
[![Health](https://phpackages.com/badges/thousandmonkeys-m2-flatcategories-module/health.svg)](https://phpackages.com/packages/thousandmonkeys-m2-flatcategories-module)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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