We assume you're familiar with Composer, a dependency manager for PHP. Use the following command to add the bundle to your composer.json and download the package.
If you have Composer installed globally.
composer require sylius/grid-bundle
Otherwise you have to download .phar file.
curl -sS https://getcomposer.org/installer | php
php composer.phar require sylius/grid-bundle
You need to enable the bundle inside the kernel.
If you're not using any other Sylius bundles, you will also need to add
SyliusResourceBundle
and its dependencies to kernel. Don't worry,
everything was automatically installed via Composer.
<?php
// config/bundles.php
return [
Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true],
];
Congratulations! The bundle is now installed and ready to use. You need to define your first resource and grid!