0

I need to run laravel app with defined in composer file:

"require": {
    "php": "^8.1",
    "laravel/framework": "^10.0",
    "tatumio/tatum-php": "^2.0",

on my php8.3 with apache 2

But composer raises an error:

Problem 1
- Root composer.json requires tatumio/tatum-php ^2.0, found tatumio/tatum-php[dev-master] but it does not match the constraint.

But why I get this error?

The repository https://github.com/tatumio/tatum-php is archived now and in composer file I see

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

but dev-master in error message...

How can I run the app?

Additional details:

In composer.json file I added a block:

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/markjivko/tatum-php"
    }
],

Not sure if type="vcs" is valid here. I have also modified the require block:

"require": {
    "php": "^8.1",
    "laravel/framework": "^10.0",
    "markjivko/tatum-php": "master",
},

I suppose that for markjivko/tatum-php package the valid value is master, but why then error and which is the valid syntax?

3
  • 1
    Keep in mind that the repository behind that package hasn't seen any activity since nearly two years. I would avoid installing such a package Commented Dec 9, 2024 at 7:26
  • You are right, but I need to support this app. Can you advice similar functionality plugin not out of date ? Commented Dec 9, 2024 at 8:44
  • 1
    Searching for libraries is officially off-topic on StackOverflow Commented Dec 9, 2024 at 8:54

1 Answer 1

2

You get the error because, as the error message says, there is no package published under version 2.0.

If you check on Packagist, you'll see that the only version installed is the master branch.

You do not even need to create an additional repositories configuration, you can remove that part from your composer.json.

You simply need to specify the version constraint correctly:

In your case it would be:

"require": {
    "php": "^8.1",
    "laravel/framework": "^10.0",
    "tatumio/tatum-php": "dev-master"
}
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks! It works. Could you please where from "dev-master". I did not it anywhere mentioned.
In the answer I linked there is a link to the relevant docs. Here it is: getcomposer.org/doc/articles/aliases.md#why-aliases-

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.