I need something like below, with the ability to curve text on an arc or a circle.
<?php
$im = imagecreate (300, 300);
imagecolorallocate ($im, 0, 0, 0);
#variables
$cx = "150";
$cy = "150";
$radius = "40";
$textRadius = "20";
$fillPortion = "0.4";
$font = "/home/local/fonts/arial.ttf";
$fontsize = "20";
$top = "Hello";
$bottom = "Its ME";
$fgcolor = imagecolorallocate ($im, 255, 255, 255);
#circle text
imagestringftcircle($im, $cx, $cy, $radius, $textRadius, $fillPortion, $font, $fontsize, $top, $bottom, $fgcolor);
#Output Image
imagepng($im);
imagedestroy($im);
?>
This code no longer works as php/gd no longer have the imagestringcircle. Although I have the source code for the orginal patch by Boutell.