PHP code example of 3brs / sylius-sorting-plugin

1. Go to this page and download the library: Download 3brs/sylius-sorting-plugin 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/ */

    

3brs / sylius-sorting-plugin example snippets


   return [
       ...
       ThreeBRS\SortingPlugin\ThreeBRSSyliusSortingPlugin::class => ['all' => true],
   ];
   
javascript
    Encore
       .addEntry('threebrs-sorting-admin', path.resolve(__dirname, 'vendor/3brs/sylius-sorting-plugin/assets/admin/js/sorting-plugin.js'))