Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8901359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:20:02+00:00 2026-06-15T01:20:02+00:00

If I create an empty folder and put composer.json there: { require: { silex/silex:

  • 0

If I create an empty folder and put composer.json there:

{
    "require": {
        "silex/silex": "1.0.*@dev"
    }
}

and than run composer install – it works fine, microframework silex and all it’s requirements will be installed into vendor folder. Ok.

Now more complex example that I cant understand why it does not work.
I have a project (called “FB”) which depends on my own “some kind of framework” (called “light/light4”).
FB project’s composer.json:

{
    "repositories":[
        {
            "type":"hg",
            "url":"http://bitbucket.org/pqr/light4"
        }
    ],
    "require":{
        "light/light4":"dev-default"
    }
}

As you see it depends on my framework light/light4 hosted on bitbucket.
Then light/light4 composer.json:

{
    "name":"light/light4",
    "version":"1.0.0",
    "require":{
        "php":">=5.4.0",
        "silex/silex": "1.0.*@dev",
        "twig/twig":">=1.8,<2.0-dev",
        "monolog/monolog":">=1.0.0",
        "symfony/validator":"2.1.*",
        "symfony/console":"2.1.*"
    },
    "autoload":{
        "psr-0":{
            "Light":"src/"
        },
        "files":[
            "src/functions/body.php", "src/functions/db.php", "src/functions/file.php", "src/functions/misc.php"
        ]
    }
}

light/light4 depends on silex/silex and some other things.

Since I never metioned "minimun-stability":"dev" – assume all packages by default will be installed for stable versions. Except silex/silex required by light/light4 as "silex/silex": "1.0.*@dev"

Unfortunatelly, when I run composer -v install on the root project (FB), I get following error:

Loading composer repositories with package information
Reading composer.json of light/light4 (default)
Importing branch default (dev-default)
Installing dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - light/light4 dev-default requires silex/silex 1.0.*@dev -> no matching package found.
    - light/light4 dev-default requires silex/silex 1.0.*@dev -> no matching package found.
    - Installation request for light/light4 dev-default -> satisfiable by light/light4 dev-default.

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.

silex/silex 1.0.*@dev -> no matching package found – WHY??? It works for simple empty project, but does not work for requirements chain 🙁

Someone from composer-dev irc adviced to put "silex/silex": "1.0.*@dev" into general composer.json of FB project. I tried – and now it works: all packages installed in stable versions and the only silex/silex in dev version as I wanted. Now I totally confused.

The question is still there – why it works in general composer.json and does not work in nested (required) project light/light4? I what to understand to root of the issue, or it’s just a bug of composer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:20:05+00:00Added an answer on June 15, 2026 at 1:20 am

    As the docs say: “require and require-dev additionally support stability flags (root-only)”

    Those flags are only read from the root package (see definition of root-only) because that way it gives your project the full control over the stability of the packages. Obviously that’s a problem when some of your dependencies rely on unstable stuff, but that situation should get better as more and more packages have composer-available stable releases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an elegant way to create an empty jquery element (versus null) ?
How can I create an empty folder in Java?
i have a MVC application that works fine; but now i need to put
I am trying to create some empty folder in COMMONAPPDATAFOLDER during installation but it
My issue with the below code is the if(if(empty($fields['Remuse']))) statement everything else works fine.
For a new project I have created a local folder tree with empty Visual
What is the most efficient way to create empty ListBuffer ? val l1 =
How can I create an empty file at the DOS/Windows command-line? I tried: copy
What's the simplest/canonical way to create an empty file in C#/.NET? The simplest way
How do I create a truly empty xml element with the for xml-directive in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.