Jump to content

Recommended Posts

Hi, 

 

I am trying to do a composer install on a project I am working on at the moment. 

I have previously create a git repo with some content I want to use in my current project. 

 

My git repo: https://github.com/FreidCreations/freid-query

	
{
    "name": "Freid Query",
    "description": "A database access layer (DAL) built on top of PDO.",
    "license": "MIT",
    "authors": [
        {
            "name": "Fraser Reid",
            "email": "freid001@hotmail.co.uk",
            "homepage": "http://freidcreations.atwebpages.com/"
        }
    ],
    "require": {
        "php": ">=5.4"
    },
    "autoload": {
        "psr-4": {
            "myNamespace\\": "freid-query/"
        }
    }
}

 

In my project:

{
    "repositories": [{
        "type": "vcs",
        "url": "https://github.com/FreidCreations/freid-query"
    }],
    "require": {
        "php": ">=5.4"
    },
    "require-dev": {
        "FreidCreations/freid-query": "dev-master"
    },
    "autoload": {
        "classmap": [
            "application/controller",
            "application/config",
            "application/core",
            "application/model",
            "application/table"
        ],
        "psr-4": {
            "myNamespace\\": "application/"
        }
    }
}

However when I do a composer install on my project I get the following errors:

 

# composer install
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "C:\ProgramData\ComposerSetup\bin\composer.phar self-update" to get the latest version.
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
 
  Problem 1
    - The requested package freidcreations/freid-query could not be found in any version, there may be a typo in the package name.
 
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.

 

I am new to using composer as you can probable tell. What am I doing wrong here? Any help would be really appreciated.

 

Many Thanks

Edited by Freid001
Link to comment
https://forums.phpfreaks.com/topic/299590-help-with-composer-install/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.