image-optimizer icon indicating copy to clipboard operation
image-optimizer copied to clipboard

PHP 8 Support

Open marin246 opened this issue 3 years ago • 3 comments

is PHP8 support in the works? Thanks in advance!

marin246 avatar Feb 14 '22 08:02 marin246

https://github.com/psliwa/image-optimizer/pull/80

i've added this pr which seems to work fine in php8.1 using symfony 6 components just waiting for the maintainer to merge it, although the repo seems like it's abandoned and might need to be forked

mad-briller avatar Feb 15 '22 09:02 mad-briller

I also submitted 2 PRs before noticing this repo may be abandoned so I've forked and implemented a bunch of improvements here https://github.com/Flynsarmy/image-optimizer

So far:

  • PHPStan level 6 compliance
  • PSR-12 coding standards
  • Latest version of Symfony components
  • Compatibility with svgo 2.8.0
  • Moved from TravisCI to Github Actions
  • Better documentation inside classes
  • Added a method to view which optimizers are installed on your system

My version of the package is only compatible with PHP 8.0+. If you're on an outdated PHP, use this repo instead.

Flynsarmy avatar Mar 11 '22 23:03 Flynsarmy

yeah there is the spatie/image-optimizer library that i've moved to instead of this one.

mad-briller avatar May 13 '22 16:05 mad-briller