Download the PHP package sem-soft/yii2-sortable without Composer

On this page you can find all versions of the php package sem-soft/yii2-sortable. 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-sortable

yii2-sortable

Full sortable pack for managing entities ordering by specific attribute and grouping filter

Usage

Next, an example of using the entire Sortable package

Tables migration

  1. Table with simple one filed order column 'sort'

  2. Table with complex sorting group fields 'sort' and 'document_group_id'

Models configuration

Include simple rule for 'sort' field and special behavior setting.

  1. Model with simple ordering by 'sort' field

  2. Model with complex grouping ordering by two fields: 'document_group_id' and 'sort'

Controller special actions configuration

Their is several special actions for reordering entities. Configuration of this actions may be done in controller method. Don't forgot about RBAC and filtering permissions for this actions

  1. Step based actions. These actions allow move entity upstair and downstair by one step only. The example below shows the configuration of two actions with a complex grouping anonymous sort function.

  2. Drag and drop action. This action allow move entity in randomly place in list. Example below.

Widgets

All widgets adapted to work with Pjax tech.

  1. GridView widget with Step-based ordering buttons.

    When Primary key of sortable entity is composite the ActionColumn buttons url configuration look like the following:

  2. SortableGridView widget. Allows Drag and Drop selected entity over his table list. Also support Pjax. Widget detects Pjax sorround automaticly. Now, this widget supports only GET-method. In the future, POST-method support will be added.

All versions of yii2-sortable with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
yiisoft/yii2 Version ~2.0.13
yiisoft/yii2-jui Version ~2.0.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 sem-soft/yii2-sortable contains the following files

Loading the files please wait ....