Download the PHP package runroom-packages/sortable-behavior-bundle without Composer

On this page you can find all versions of the php package runroom-packages/sortable-behavior-bundle. 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 sortable-behavior-bundle

RunroomSortableBehaviorBundle

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

This bundle gives the ability to define sortable entities and to be able to sort the using Sonata Backoffice. It is inspired on: pixSortableBehaviorBundle.

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in config/bundles.php file of your project:

Usage

This bundle checks if you are using Gedmo Sortable to handle the sort order of your entities, if not, it will use the default ORM implementation, where you will need to add entities on the configuration of the bundle manually. If you are using Gedmo, and don't want to change the default field name position, you don't need to configure anything for the bundle.

We provide a trait, so you can easily add the position field with the Gedmo configuration on each entity you want to be able to sort:

And then, on your admin class, you can add the SortableAdminTrait trait to be able to sort the entities on the list view:

And that's all, you should now see the sort buttons on the list view of your admin class.

Configuration

Use a draggable list instead of up/down buttons

In order to use a draggable list instead of up/down buttons, change the template in the move action to @RunroomSortableBehavior/sort_drag_drop.html.twig.

Contribute

The sources of this package are contained in the Runroom monorepo. We welcome contributions for this package on runroom/runroom-packages.

License

This bundle is under the MIT license.


All versions of sortable-behavior-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
doctrine/doctrine-bundle Version ^2.8
doctrine/orm Version ^2.14
symfony/config Version ^5.4 || ^6.2
symfony/dependency-injection Version ^5.4 || ^6.2
symfony/http-foundation Version ^5.4 || ^6.2
symfony/http-kernel Version ^5.4 || ^6.2
symfony/property-access Version ^5.4 || ^6.2
symfony/translation Version ^5.4 || ^6.2
twig/twig Version ^3.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 runroom-packages/sortable-behavior-bundle contains the following files

Loading the files please wait ....