Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer #1

Open
youngbobby opened this issue Jul 9, 2015 · 5 comments
Open

Composer #1

youngbobby opened this issue Jul 9, 2015 · 5 comments

Comments

@youngbobby
Copy link

Thanks. I can't seem to run composer on this repo with the guide you have given.

composer update janasva / google-trends

I updated composer.json file as adviced.

{
    "require": {
        "jonasva/google-trends": "dev-master"
    }
}

I'm hoping that you would add supoort for Google Topcharts country based :)

@jonasva
Copy link
Owner

jonasva commented Jul 10, 2015

Hi @youngbobby,

What is the error you are getting?

Make sure that you first update your composer.json file, and then execute the composer update command. Also, there is a typo in the composer update statement you posted. It has to be:

composer update jonasva/google-trends

Give it a try and let me know how it goes.

@youngbobby
Copy link
Author

Hi @jonasva

This is the error I am getting:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - The requested package jonasva/google-trends No version set (parsed as 1.0.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  for more details.
Read  for further common problems.

Here's my composer.json file:

{
    "name": "jonasva/google-trends",
    "description": "Unofficial Google Trends PHP API",
    "homepage": "http://github.com/jonasva/google-trends",
    "keywords": ["google", "trends", "api"],
    "license": "MIT",
    "authors": [
        {
            "name": "Jonas Van Assche",
            "email": "[email protected]"
        }
    ],
    "require": {
        "php": ">=5.4.0",
        "guzzlehttp/guzzle": "5.0.*@dev",
        "jonasva/google-trends": "dev-master"
    },
    "autoload": {
        "psr-0": {
            "Jonasva\\GoogleTrends": "src/"
        }
    }
}

@jonasva
Copy link
Owner

jonasva commented Jul 10, 2015

hmm, that might related to the minimum-stability setting in your own composer.json. Try adding these 2 lines at the bottom of your project's composer.json:

"prefer-stable": true,
"minimum-stability": "dev"

@salmanyaqoob
Copy link

i even have same issue, can you please guide me what to do.
my composer.json file:
{
"name": "jonasva/google-trends",
"description": "Unofficial Google Trends PHP API",
"homepage": "http://github.com/jonasva/google-trends",
"keywords": ["google", "trends", "api"],
"license": "MIT",

"authors": [
    {
        "name": "Jonas Van Assche",
        "email": "[email protected]"
    }
],
"require": {
    "php": ">=5.4.0",
    "guzzlehttp/guzzle": "5.0.*@dev",
    "jonasva/google-trends": "dev-master"
},
"autoload": {
    "psr-0": {
        "Jonasva\\GoogleTrends": "src/"
    }
},
"prefer-stable": true,
"minimum-stability": "dev"

}

and error i am receiving following error:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package jonasva/google-trends No version set (parsed as 1.0.0) could not be found.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

@jonasva
Copy link
Owner

jonasva commented Nov 4, 2015

Hi @salmanyaqoob,

Actually in your project's composer.json file, you should just include jonasva/google-trends.

Give it a try with a composer.json file like this in your project, and let me know if it works:

{
    "require": {
        "jonasva/google-trends": "dev-master"
    },
    "prefer-stable": true,
    "minimum-stability": "dev"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants