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

Error on instalation #45

Closed
Odilbukh opened this issue Jul 1, 2022 · 3 comments
Closed

Error on instalation #45

Odilbukh opened this issue Jul 1, 2022 · 3 comments

Comments

@Odilbukh
Copy link

Odilbukh commented Jul 1, 2022

I have created new Laravel 8 project. Nothing changed. Laravel is fresh. And run command:
composer require php-telegram-bot/laravel
it returns error like this:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires php-telegram-bot/laravel ^0.0.1 -> satisfiable by php-telegram-bot/laravel[0.0.1].
- php-telegram-bot/laravel 0.0.1 requires illuminate/database 5.* -> found illuminate/database[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
Problem 2
- symfony/deprecation-contracts v3.1.1 requires php >=8.1 -> your php version (8.0.20) does not satisfy that requirement.
- fakerphp/faker v1.19.0 requires symfony/deprecation-contracts ^2.2 || ^3.0 -> satisfiable by symfony/deprecation-contracts[v3.1.1].
- fakerphp/faker is locked to version v1.19.0 and an update of this package was not requested.

You can also try re-running composer require with an explicit version constraint, e.g. "composer require php-telegram-bot/laravel:*" to figure out if any version is installable, or "composer require php-telegram-bot/laravel:^2.1" if you know which you need.

@noplanman
Copy link
Member

I suggest you look into https://git.tii.tools/tii/laravel-telegram-bot
Hopefully soon that will become the default and moved here.

@LucaColombi
Copy link

try composer require php-telegram-bot/laravel:*
it look for a version suitable with your composer situation

@TiiFuchs
Copy link
Member

TiiFuchs commented Oct 4, 2022

Closed due to new code base with v2.0

@TiiFuchs TiiFuchs closed this as completed Oct 4, 2022
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

4 participants