Quantcast

Re: [ZF2] Install ZF2 suggested packages

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [ZF2] Install ZF2 suggested packages

Marco Pivetta
What are you exactly typing in your composer command? What's your composer.json?

Marco Pivetta

http://twitter.com/Ocramius     

http://marco-pivetta.com    



On 7 September 2012 15:30, Razorblade [via Zend Framework Community] <[hidden email]> wrote:
Hi everyone,
Zend Framework 2 suggests to install these packages

    doctrine/common: Doctrine\Common >=2.1 for annotation features
    ext-intl: ext/intl for i18n features
    pecl-weakref: Implementation of weak references for Zend\Stdlib\CallbackHandler
    zendframework/zendpdf: ZendPdf for creating PDF representations of barcodes
    zendframework/zendservice-recaptcha: ZendService\ReCaptcha for rendering ReCaptchas in Zend\Captcha and/or Zend\Form

but what is the configuration using composer?
Other than doctrine, the other components give error when trying to launch composer.phar update.

Eg.
"The requested PHP extension ext-intl * is missing for your system."

Thanks in advance!


If you reply to this email, your message will be added to the discussion below:
http://zend-framework-community.634137.n4.nabble.com/ZF2-Install-ZF2-suggested-packages-tp4656744.html
To unsubscribe from Zend Framework Community, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [ZF2] Install ZF2 suggested packages

Razorblade
This post was updated on .
Hi Marco,
thanks for your quick reply,
I don't know why but your answer created a new thread other than continue the one I opened, anyway...
after followed the quickstart and installed doctrine 2, this is my current composer.json

{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "homepage": "http://framework.zend.com/",
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "2.*",
        "zendframework/zend-developer-tools": "dev-master",
        "doctrine/common": ">=2.1",
        "doctrine/doctrine-orm-module": "dev-master",
        "bjyoungblood/bjy-profiler": "dev-master",
        "ext-intl": "dev-master" // <= problem with this, also tried with * instead of dev-master
    },
    "autoload": {
        "psr-0": {
            "Application": "module/Application/src",
            "Album": "module/Album/src"
        },
        "classmap": [
            "./"
        ]
    }
}

What is the correct syntax to add the "ext-intl" and the other suggested modules?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [ZF2] Install ZF2 suggested packages

Razorblade
Also tried with "ext/intl", the error now is the follow:


Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package ext/intl dev-master could not be 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [ZF2] Install ZF2 suggested packages

Marco Pivetta
In reply to this post by Razorblade
Heya

ext/intl is not a composer package, it is a PHP PECL extension:
http://php.net/manual/en/book.intl.php

Composer can check these things too ;)

Marco Pivetta

http://twitter.com/Ocramius

http://marco-pivetta.com



On 7 September 2012 15:44, Razorblade <[hidden email]> wrote:

> Hi Marco,
> thanks for your quick reply,
> I don't know why but your answer created a new thread other than continue
> the one I opened, anyway...
> after followed the quickstart and installed doctrine 2, this is my current
> composer.json
>
> {
>     "name": "zendframework/skeleton-application",
>     "description": "Skeleton Application for ZF2",
>     "license": "BSD-3-Clause",
>     "keywords": [
>         "framework",
>         "zf2"
>     ],
>     "homepage": "http://framework.zend.com/",
>     "minimum-stability": "dev",
>     "require": {
>         "php": ">=5.3.3",
>         "zendframework/zendframework": "2.*",
>         "zendframework/zend-developer-tools": "dev-master",
>         "doctrine/common": ">=2.1",
>         "doctrine/doctrine-orm-module": "dev-master",
>         "bjyoungblood/bjy-profiler": "dev-master",
>         "ext-intl": "dev-master" // <= problem with this
>     },
>     "autoload": {
>         "psr-0": {
>             "Application": "module/Application/src",
>             "Album": "module/Album/src"
>         },
>         "classmap": [
>             "./"
>         ]
>     }
> }
>
> What is the correct syntax to add the "ext-intl" and the other suggested
> modules?
>
>
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Re-ZF2-Install-ZF2-suggested-packages-tp4656745p4656747.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: [hidden email]
> Info: http://framework.zend.com/archives
> Unsubscribe: [hidden email]
>
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [ZF2] Install ZF2 suggested packages

Razorblade
This post has NOT been accepted by the mailing list yet.
I understand,
and what about zendframework/zendpdf and zendframework/zendservice-recaptcha ? I obtain the same error.

Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [ZF2] Install ZF2 suggested packages

Marco Pivetta
That's because those packages are on packages.zendframework.com and not on packagist.

As reported on http://packages.zendframework.com/ add following to your composer.json:

"repositories": [
    {
        "type": "composer",
        "url": "http://packages.zendframework.com/"
    }
],


Marco Pivetta

http://twitter.com/Ocramius     

http://marco-pivetta.com    



On 7 September 2012 16:05, Razorblade [via Zend Framework Community] <[hidden email]> wrote:
I understand,
and what about zendframework/zendpdf and zendframework/zendservice-recaptcha ? I obtain the same error.

Thanks


If you reply to this email, your message will be added to the discussion below:
http://zend-framework-community.634137.n4.nabble.com/Re-ZF2-Install-ZF2-suggested-packages-tp4656745p4656751.html
To unsubscribe from Zend Framework Community, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [ZF2] Install ZF2 suggested packages

Razorblade
This post has NOT been accepted by the mailing list yet.
Thanks Marco,
now everything is set up with the composer.

Cheers
Loading...