spatie / laravel-model-cleanup

Clean up unneeded records
https://freek.dev/410-a-laravel-package-to-clean-up-models
MIT License
399 stars 42 forks source link

BUG / QUESTION InvalidArgumentException matching PHP version on composer require #3

Closed blomdahldaniel closed 8 years ago

blomdahldaniel commented 8 years ago

In raising this issue, I confirm the following (please check boxes):


Description of the problem

I am on a server with PHP 5.6.10.0 When I run: composer require spatie/laravel-model-cleanup it yields the error:

[InvalidArgumentException] Could not find package spatie/laravel-model-cleanup at any version matching your PHP version 5.6.10.0

How come I cannot install this package? What can I do to fix this? And where does it say what php version is required for this package?

Note: Composer works just fine in any other case (just pulled in your laravel-backup without problem ;) )

sebastiandedeyne commented 8 years ago

This package requires php7, so it won't be installable on a server with 5.6.

blomdahldaniel commented 8 years ago

Okey, that is sad news for me then. Please add information about this to the readme so that users like me can get that info.

This seems to be some awesome stuff.. 👍

kabircse commented 7 years ago

It would be better, if it follow the backward compatibility.

freekmurze commented 7 years ago

@blomdahldaniel For any package, not only ours, you can check composer.json for the required PHP version.

Almost every package we put out requires PHP 7.0 or higher.

blomdahldaniel commented 7 years ago

@freekmurze aah yeah right that is true, hadn't thought of that. While I've got you - thanks for your talk on Laracon US. :)