Assuming you already have set up a Symfony project, you can add the FOSRoutingRestBundle to it. Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require handcraftedinthealps/rest-routing-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Caution!
If you are not using Flex, you also have to enable the bundle by adding the following line in the config/bundles.php
:
// config/bundles.php HandcraftedInTheAlps\RestRoutingBundle\RestRoutingBundle::class => ['all' => true],