PHP code example of ananto-in / mf-categories
1. Go to this page and download the library: Download ananto-in/mf-categories library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ananto-in / mf-categories example snippets
use Ananto\MfCategories\Categories;
$categories = new Categories();
$categories->resolveLabel('Income/Debt Oriented Schemes - Short Term Fund')?->id; // "debt.short_term"
$categories->find('debt.short_term')?->formerNames; // ["Short Duration Fund"]
$categories->active('2026-02-25'); // categories before the 2026 circular