Download the PHP package ananto-in/mf-categories without Composer

On this page you can find all versions of the php package ananto-in/mf-categories. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mf-categories

mf-categories

Open reference data for Indian mutual fund scheme categories: SEBI's categorization with stable IDs, characteristics, AMFI label aliases and change history. JSON, with PHP and JS packages.

Version 0.1.0. Reflects the SEBI circular of 26 February 2026. Maintained by Deepesh Shah Chheda, ananto.in.

Why

SEBI renames, splits and discontinues scheme categories from time to time (most recently by the circular dated 26 February 2026). Systems that store category names break when that happens. This project gives every category a stable ID, records what each category was called and when, and maps the labels AMFI publishes to those IDs.

What is in the dataset

File Contents
data/categories.json Broad and specific categories, with SEBI's characteristics and validity dates
data/aliases.json AMFI scheme-data labels (old and new formats) mapped to category IDs
data/history.json Renames, splits, replacements, new and discontinued categories, with effective dates
data/circulars.json The SEBI circulars the data is derived from
data/glide-paths.json Life Cycle Fund asset allocation by years to maturity
data/rules.json Cross-category rules (portfolio overlap limits, per-fund-house limits, exit loads)
data/meta.json Dataset version and the latest circular it reflects
data/schema/ JSON Schema for each file

Principles

Install

Releases follow Semantic Versioning; see the changelog.

API

The PHP and JS packages expose the same operations. Category is a typed, immutable object with camelCase properties (id, parent, level, name, shortName, group, status, validFrom, validTo, circular, schemeTypeDescription, description, characteristics, formerNames, note). Rules, history, glide paths, circulars and meta are returned as the plain objects found in the JSON files.

Operation Returns
all() every category, including superseded and discontinued
find(id) a category or null
children(id) direct children
active(on?) categories in force on a date (today by default); validFrom <= on < validTo
resolveLabel(label) the category an AMFI label maps to; null if unknown or ambiguous
candidatesForLabel(label) every category a label can mean (several for an ambiguous label)
successors(id) categories that continue a split, merged or replaced category (a rename keeps its id)
history(id?) lifecycle events for a category, or all events
rulesFor(id) rules on the category or any of its parents
glidePath(id) Life Cycle glide path, or null
circular(id) / meta() source circular / dataset version

Label matching ignores case and repeated or surrounding whitespace.

PHP

JavaScript

ES modules, no dependencies, TypeScript types included. Needs Node 20.10+ (JSON import attributes) or a bundler that supports them (Vite, webpack 5, esbuild, Rollup).

Every operation is available as a named export and on the default export. Dates can be a Date (its local calendar day) or a YYYY-MM-DD string; anything else throws a RangeError (the PHP package throws InvalidArgumentException). createCategories(dataset) builds the same API over your own copy of the data.

The JS package parses all data files when imported and adds about 121 KB (14 KB gzipped) to a bundle. For a front end that needs only a label or two, fetch the JSON files you need from the package's data/ directory instead.

Both packages are tested against the same cases in tests/contract/api-contract.json, so they behave identically.

PHP: performance

Each data file is read on first use and cached for the rest of the process: the first label lookup costs about a millisecond, later lookups under a microsecond, and about 1.5 MB of memory. Create one Categories per process (or register it as a shared service); instances share the parsed data.

Development

Disclaimer

This is an unofficial community reference compiled from publicly available SEBI circulars and AMFI data. It is not an official SEBI or AMFI resource and is not investment advice. The data may contain errors or lag behind the latest circulars: always check the source circular before relying on it. Provided "as is", without warranty of any kind.

License


All versions of mf-categories with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ananto-in/mf-categories contains the following files

Loading the files please wait ...