TYPO3 with composer - Installing previous extension version [duplicate] - composer-php

This question already has answers here:
How to install a specific version of package using Composer?
(7 answers)
Closed 2 years ago.
I am trying to install the extension clickstorm seo for TYPO3 9.5
But with the typical composer command "composer require clickstorm/cs_seo" I am only getting the latest version, which is for TYPO3 10.
Is there a way to get the previous version with the composer command?

You can require a specific version just fine:
composer require clickstorm/cs_seo ^4.3
You can see the latest version compatible to TYPO3 by checking the package site on Packagist.

Related

Why laravel/ui is not accepted? [duplicate]

This question already has answers here:
How to explain Composer's error log?
(2 answers)
Closed 6 months ago.
I try to install laravel/ui with command
composer require laravel/ui:^2.4
laravel/ui[v2.4.0, ..., v2.4.1] require php ^7.2.5 -> your php version (8.1.2) does not satisfy that requirement.
My php version is 8.1.2:
screenshot
laravel/ui 2.4 is compatible with older php version. either install newest laravel/ui via composer require laravel/ui command, or downgrade php.

Installation error of EasyAdmin in Symfony 5 app [duplicate]

This question already has an answer here:
Can't install symfony/maker-bundle
(1 answer)
Closed 2 years ago.
I tried to install EasyAdmin bundle in my Symfony 5 app:
composer require easycorp/easyadmin-bundle
And got an error:
Using version ^3.1 for easycorp/easyadmin-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- ocramius/proxy-manager 2.9.1 requires composer-runtime-api ^2.0.0 -> no matching package found.
- Installation request for ocramius/proxy-manager (locked at 2.9.1) -> satisfiable by ocramius/proxy-manager[2.9.1].
Additional info:
php -v
# PHP 7.4.12 (cli)
composer -V
# Composer version 1.10.15 2020-10-13 15:59:09
Updating Composer to 2.x version fixed this issue. Follow installation instructions on the Composer site: https://getcomposer.org/download/

laravel installing older package version

I'm trying to install this package https://packagist.org/packages/ultraware/roles for laravel 5.3.
simply applying composer require ultraware/roles doesn't work as it is not compatible with laravel 5.3 and i guess I should install an older version of the package. How can i do it. When i try to run
composer require ultraware/roles^1.7.* I get:
Could not find a matching version of package
How can i install version 1.7 of this package?
Not sure why you'd want version 1.7 of this package to be installed, looks like 5.3.1 is a version compatible with Laravel 5.3.
Note:
This package is abandoned and no longer maintained.
If you still want to install a specific version of this package use the following:
composer require ultraware/roles "5.3.1"

spatie/laravel-newsletter doesn't work on laravel 5.4

Here is the image below
See the image of composer command
Because the latest version is to be used on 5.5.
You can pull an older version if you want:
composer require spatie/laravel-newsletter 3.7.0

Laravel - Installing packages for older version

I am trying to install a package (https://github.com/ollieread/multiauth), and the site says that i requires Laravel 4.1. I am running Laravel 4.2, and so when I run composer update I get
Your requirements could not be resolved to an installable set of packages.
Why can't I install this on a higher version of Laravel?
You can't install it on higher version of Laravel is because it's been just only support for 4. 1. * of Laravel Version according to their composer.json

Resources