How to create a .webp image in PHP

php convert webp to jpg
imagewebp php example
php gd webp
imagecreatefromwebp
call to undefined function imagewebp()
php getimagesize webp
how to create webp images
cwebp php