Install Elastica 3.1.0 in Symfony with composer

103 views
Skip to first unread message

Nikolay Nikolov

unread,
Feb 29, 2016, 2:55:44 PM2/29/16
to Elastica - Elasticsearch PHP Client
Hi, I would like to install Elastica 3.0.1 in my Symfony /vendors

My composer.json looks like this:

"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.8.*",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"ruflin/elastica": "~3.1.0"
},

is this possible "ruflin/elastica": "~3.1.0" ?

In the documentation of Elasitca there is :

"require": { "ruflin/elastica": "dev-master" }

and when I type:

composer require ruflin/elastica

It installs: Installing ruflin/elastica (2.3.1)


After the installation is there something else I need to do so the autoload namespace path is visible in my project?

Thanks
Nik



ruflin

unread,
Mar 1, 2016, 4:41:30 AM3/1/16
to Elastica - Elasticsearch PHP Client
The behaviour you describe is quite strange. You post a gist with the exact composer.json file and the command you are running so I can test this locally?

Max Małecki

unread,
Mar 1, 2016, 5:18:09 AM3/1/16
to Elastica - Elasticsearch PHP Client
To install   "ruflin/elastica""~3.1.0" 

you need php 5.4.0


--
You received this message because you are subscribed to the Google Groups "Elastica - Elasticsearch PHP Client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elastica-php-cl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages