GD is bundled with PHP. It reads and writes single-frame GIF with transparency, but loads only the first frame of an animation and can’t write animations. Resizing an animated GIF with GD turns it into a still image.
Imagick handles animated GIFs fully: iterate frames, read and set delays and the loop count, coalesce, resize every frame and optimize layers before saving.
Intervention Image supports animated GIF with both the GD and Imagick drivers (it ships its own GIF decoder and encoder for GD): resize and save keep the animation, and you can build animations from images.
GDPHP's bundled GD extension reads and writes GIF images. How to load and save GIF, keep transparency when resizing, convert PNG to GIF.
ImagickImagick is the PHP extension for ImageMagick. How to read animated GIF frames and delays, resize an animated GIF without breaking it.
Intervention ImageIntervention Image handles animated GIF in PHP with the GD or Imagick driver. How to resize an animated GIF, read frames and delays, create an animation.