zucchi/ZucchiBootstrap

Unable to install via composer

Closed this issue · 5 comments

Having problem while using composer to install this module:

Command line error:

E:\htdocs\myproject004>php composer.phar require zucchi/bootstrap:dev-master
composer.json has been updated
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for zucchi/bootstrap dev-master -> satisfiable by zucchi/bootstrap dev-master.
    - zucchi/bootstrap dev-master requires zucchi/zucchi dev-master -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting composer.json to its original content.

Also tried version 0.*, *, x but none works

My composer.json

{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "homepage": "http://framework.zend.com/",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "2.*"
    }
}

I've installed via zip version and setup all thing. When I try to run this helper, getting error in browser:

Fatal error: Class 'Zucchi\Form\View\Helper\FormElement' not found in D:\htdocs\myproject004\vendor\ZucchiBootstrap\src\ZucchiBootstrap\Form\View\Helper\BootstrapRow.php on line 402

Edit: Fixed it after manually installed "https://github.com/zucchi/Zucchi"

Hi dkaswan,

The reason for this is that while the modules have been around for a while they are not technically stable yet so in order to install them without issue you need to tell composer to allow unstable modules to be installed.

You can do this by adding the minimum-stability option to your composer.json file:

{
    "name": "my application",
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.4",
        "zucchi/bootstrap": "dev-master"
    }
}

Matt

Now the output is "zucchi/zucchi dev-master requires pear-pear/archive_tar * -> no matching package found."

composer.json:

E:\htdocs\myproject004>php composer.json
{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "minimum-stability": "dev",
    "homepage": "http://framework.zend.com/",
    "require": {
        "php": ">=5.4",
        "zendframework/zendframework": "2.*"
    }
}

Output:

E:\htdocs\myproject004>php composer.phar require zucchi/bootstrap:dev-master
composer.json has been updated
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - zucchi/zucchi dev-master requires pear-pear/archive_tar * -> no matching package found.
    - zucchi/bootstrap dev-master requires zucchi/zucchi dev-master -> satisfiable by zucchi/zucchi dev-master.
    - Installation request for zucchi/bootstrap dev-master -> satisfiable by zucchi/bootstrap dev-master.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting composer.json to its original content.

Hi dkaswan,

Up untill about 5 minutes ago there was a dependency for the pear Archive\Tar classes.

These hove now been removed to a separate module and should filter have filtered through to packagist by now.

If you do end up still requiring a pear dependency then you need to add:

"repositories": [
    {
        "type": "pear",
        "url": "http://pear.php.net"
    }
],

to the composer.json file in your project root

👍 @mattcockayne Working now without pear dependency :)

composer.json has been updated
Loading composer repositories with package information
Updating dependencies
  - Installing zucchi/zucchi (dev-master 723cf95)
    Cloning 723cf95cddb0546ebd0444d4f0b88d2feae8950e

  - Installing zucchi/bootstrap (dev-master 3aa7637)
    Cloning 3aa763738a659cc25b39acc0f5bb8c9d6163a967

Writing lock file
Generating autoload files