Download the PHP package aminkt/yii2-category-module without Composer

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

category manager

Category Module

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json file.

Configuration

Once the extension is installed, simply use it in your code by :

  1. Add module configuration to your config file in module section like as:

Note: You can leave modelClass and searchModelClass blank to use default models of module. If you are using mongo db, you can use models implemented in \saghar\category\models\mongo

  1. Run migration files of module using yii migrate --migrationPath=@vendor/saghar/yii2-category-module/src/migrations --interactive=0

Note: If you are using mongo db please skip this step.

Advanced configuration

If you want use your own model feel free to write your own code but please be aware about this steps to configurate your your app using Category module.

  1. Create your own Active record and implement \saghar\category\interfaces\CategoryInterface

  2. In you configuration file define your models like described in configuration section.

Done.

Use Category module api to create, update, delete and fetch your categories.

You can use \saghar\category\controllers\RestApiController and extend your controller from this file. This file will provide below actions and routes:

Note: All request except index and view shoud use at least one auth method to authrize user.

Warning: Cross origin is disabled by default. if you have any problem with this please report it.

CONTRIBUTING

If you want help us to improve this module please check this linkg.


All versions of yii2-category-module with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ~2.0.0
aminkt/yii2-tree-view-widget Version dev-master
aminkt/yii2-custom-exceptions Version dev-master
aminkt/yii2-input-tag-widget Version dev-master
aminkt/yii2-alert-widget Version dev-master
kartik-v/yii2-widget-select2 Version @dev
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 aminkt/yii2-category-module contains the following files

Loading the files please wait ....