gif animation in php

I wondered how to create an animated gif image using PHP, but I did not find any information on the Internet about this. Is there any library to work with them?

Answer 1, authority 100%

Yes, I can’t tell you exactly, but there is an article on HabrĂ© called captcha 4d. It fully describes how to draw gifs. If I’m not mistaken, the Imagick library is used.

Thanks to Sh4dow for finding the article

Answer 2, authority 50%

Creating Animated GIFs in PHPwith GIFEncoder.class