Download the PHP package pdaleramirez/category-tree without Composer

On this page you can find all versions of the php package pdaleramirez/category-tree. 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 category-tree

Category Tree plugin for Craft CMS 3.x

Builds a Category tree structure for your menu and links.

Installation

To install Category Tree, follow these steps:

  1. Download & unzip the file and place the category-tree directory into your craft/plugins directory
  2. -OR- do a git clone https://github.com/pdaleramirez/category-tree.git directly into your craft/plugins folder.
    You can then update it with git pull
  3. -OR- install with Composer via composer require pdaleramirez/category-tree
  4. Install plugin in the Craft Control Panel under Settings > Plugins
  5. The plugin folder should be named category-tree for Craft to see it. GitHub recently started appending -master (the branch name) to the name of the folder for zip file downloads.

Category Tree works on Craft 3.x.

Category Tree

You can use this plugin to fetch craft recursive categories tree in your control panel.

Fetch Category Tree

Use in you template to you fetch the category tree structure from your category control panel with "groupId" as your first parameter.

Example output:

The model index returns the Category object.

Example Implementation

Display Category List

Use the function below to display html category list.

First parameter is the base url link.

Second parameter is the attribute key of the category model and this will get display at the end of your base url.

Third parameter is the css class of the "ul" html element.

HTML Output:

Display JavaScript dropdown menu

Brought to you by Precious Dale Ramirez


All versions of category-tree with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.2.0
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 pdaleramirez/category-tree contains the following files

Loading the files please wait ....