Skip to content

Instantly share code, notes, and snippets.

@holybit
Last active August 29, 2015 14:21
Show Gist options
  • Save holybit/ea2ea2fca906be39abb3 to your computer and use it in GitHub Desktop.
Save holybit/ea2ea2fca906be39abb3 to your computer and use it in GitHub Desktop.
PHP composer problem
{
"name": "xyz/foo_web",
"description": "Foo Website",
"type": "project",
"repositories": [
{
"type": "composer",
"url": "https://packagist.org"
},
{
"type": "composer",
"url": "http://packages.labs.foo.net"
},
{
"type": "composer",
"url": "http://external-packages.labs.foo.net"
}
],
"require": {
"monolog/monolog": "1.11.*",
"xyz/foo": "1.0.*"
},
"require-dev": {
"xyz/foo": "dev-master"
}
}
# Composer throws the below error with the above composer.json file.
# Note the other two repos above are Satis baesd.
# I want to have access to a git repo for xyz/foo package when I am in dev environment but have a non git repo installed to vendor/ else where.
$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing phpmailer/phpmailer (v5.2.10)
Loading from cache
- Installing anlutro/curl (0.6.2)
Loading from cache
- Installing xyz/foo (dev-master f21cdac)
Cloning f21cdac2b7e8d1b9a6fcf9d6ab37f677f94f0d0f
- Installing psr/log (1.0.0)
Loading from cache
- Installing monolog/monolog (1.11.0)
Loading from cache
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing videlalvaro/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
[Composer\DependencyResolver\SolverProblemsException]
Problem 1
- The requested package xyz/foo 1.0.* 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.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment