0

When i,would to install ZendSearch for Zend framework 2, using this line commande

php composer.phar require zendframework/zendsearch:0.1

i got this error message :

enter image description here

composer.json

 {
    "name": "zendframework/zendsearch",
    "description": "a general purpose text search engine written entirely in PHP 5",
    "type": "library",
    "license": "BSD-3-Clause",
    "keywords": [
        "zf2",
        "lucene"
    ],
    "homepage": "http://packages.zendframework.com/",
    "autoload": {
        "psr-0": {
            "ZendSearch": "library/"
        }
    },
    "repositories": [
        {
            "type": "composer",
            "url": "http://packages.zendframework.com/"
        }
    ],
    "require": {
        "php": ">=5.3.3",
        "zendframework/zend-stdlib": "2.*"
    }
}
AHmedRef
  • 2,555
  • 12
  • 43
  • 75

1 Answers1

1

As you can check on packagist site

https://packagist.org/search/?q=zendsearch

there is no "zendsearch" package ready to use

so you must add it manualy to repositories composer.json section.

your local composer.json:

...

"prefer-stable": true, 
"minimum-stability": "dev",

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/zendframework/ZendSearch"
    }
],

"require": {
    "zendframework/zendsearch": ">=0.1"
},

...
Tomek Kobyliński
  • 1,290
  • 14
  • 25