You must install KnpPaginatorBundle in the project on Symfony 2.7. The documentation suggests installing with the composer require knplabs/knp-paginator-bundle command composer require knplabs/knp-paginator-bundle , but I want to install it through the composer.json file. The problem is that when I add lines to composer.json :
"require": { ... "knplabs/knp-paginator-bundle": "^2.5" }, When you call the php composer.phar update command, an error is issued that it cannot find any version of knp-paginator-bundle .
php composer.phar require knplabs/knp-paginator-bundle- VasyOkphp composer.phar installin the project root and the composer will do everything by the rules of composer.json - VasyOkphp composer.phar require knplabs/knp-paginator-bundlecomposer itself will add the necessary line tocomposer.jsonafter the transfer to run onlyphp composer.phar installand that's it. Since the rules are already formed in composer.json (the main thing is not to forget to transfer it) - VasyOk