1000, 'height' => 1000 ); $svg = new \SVGCreator\Elements\Svg($attributesSvg); $svg->append(\SVGCreator\Element::TEXT) ->attr('x', 100) ->attr('y', 100) ->attr('fill', '#ff0000') ->text('Just added some text'); $svg->append(\SVGCreator\Element::CIRCLE) ->attr('cx', 250) ->attr('cy', 140) ->attr('fill', 'green') ->attr('r', 20) ->attr('stroke', 'cyan') ->attr('stroke-width', '5px'); echo $svg->getString(); ?>