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

Unable to use the API #2

Open
alvarosantillana opened this issue Sep 5, 2019 · 4 comments
Open

Unable to use the API #2

alvarosantillana opened this issue Sep 5, 2019 · 4 comments

Comments

@alvarosantillana
Copy link

I have been trying to use your ORANGEHRM API code with no success. Would you mind to give me a hand to see what is the problem?

This is what I get:

===========================================================

root@global [/home/intellig/www/test/orange]# php /usr/local/bin/composer require orangehrm/api-client-php:1.2.3

./composer.json has been updated
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 orangehrm/api-client-php No version set (parsed as 1.0.0) is satisfiable by orangehrm/api-client-php[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.

Installation failed, reverting ./composer.json to its original content.

========================================================
I have tried by changing version “1.2.3” to “1.2.*” but does not work.
I hope you can help. Thanks in advance,

@samanthajayasinghe
Copy link
Member

@alvarosantillana I bump the version and update the composer json. please let me know if you more issues.

@alvarosantillana
Copy link
Author

Hi Sam,

Even though I have re-downloaded all your files again, I still see the same error:

=======================================================================================
root@global# composer update
Do not run Composer as root/super user! See https://getcomposer.org/root for details
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 orangehrm/api-client-php No version set (parsed as 1.0.0) is satisfiable by orangehrm/api-client-php[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.

=======================================================================================

I also added these lines to composer.json:

"require": {
"guzzlehttp/guzzle": "~6.0",
"orangehrm/api-client-php": "1.2.4"

=======================================================================================

Any suggestion?. Kind regards,

@samanthajayasinghe
Copy link
Member

Hi @alvarosantillana ,
I have tested with the following composer json and seems working fine

{
  "require": {
    "php": ">=7",
    "orangehrm/api-client-php": "1.2.4"
  }
}

can you delete composer.lock file and try again?

@alvarosantillana
Copy link
Author

alvarosantillana commented Sep 17, 2019 via email

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

2 participants