PHP Classes

PHP SVG Creator: Generate SVG chart documents

Recommend this page to a friend!
  Info   View files View files (135)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-15 (Yesterday) RSS 2.0 feedNot enough user ratingsTotal: 602 This week: 2All time: 5,182 This week: 35Up
Version License PHP version Categories
svg-creator 1.0.13MIT/X Consortium ...5.3.10XML, PHP 5, Graphics
Description 

Author

This class can generate SVG chart documents.

It can generate XML that define charts using SVG documents.

The charts may include many type of elements like lines, circles, groups, polygon, rectangles, text, etc..

The generated document may be returned as a string or saved to a file.

Picture of Tio
  Performance   Level  
Name: Tio <contact>
Classes: 1 package by
Country: Portugal Portugal

Details

svgcreator ========== SVG Creator, PHP class to generate svg files ( somewhat inspired by d3js ) Elements available: - circle - defs - g - line - marker - path - rect - svg - text Also added an example of a class to make a complex figure, a line with an arrow on the end This class validates the most common parameters in several elements, read more on the Wiki: https://github.com/TioLancaster/svgcreator/wiki Features ========== - Chaining methods - Composer ready ( https://packagist.org/packages/tiolancaster/svgcreator ) TODO List ========== More elements More complex elements. Build complex elements with few parameters, for example an polygon passing only the x, y and radius and number of vertices.

  Files folder image Files  
File Role Description
Files folder imagedocs (1 file, 27 directories)
Files folder imageexamples (9 files)
Files folder imagesrc (1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Data Auxiliary data
Accessible without login Plain text file README.md Data Auxiliary data

  Files folder image Files  /  docs  
File Role Description
Files folder imageclasses (12 files)
Files folder imagecss (3 files, 1 directory)
Files folder imagefiles (18 files, 2 directories)
Files folder imagegraphs (1 file)
Files folder imageimages (8 files, 1 directory)
Files folder imagejs (6 files)
Files folder imagenamespaces (4 files)
Files folder imagephpdoc-cache-06 (1 file)
Files folder imagephpdoc-cache-0c (1 file)
Files folder imagephpdoc-cache-11 (1 file)
Files folder imagephpdoc-cache-16 (1 file)
Files folder imagephpdoc-cache-24 (1 file)
Files folder imagephpdoc-cache-29 (1 file)
Files folder imagephpdoc-cache-2d (1 file)
Files folder imagephpdoc-cache-2e (1 file)
Files folder imagephpdoc-cache-35 (1 file)
Files folder imagephpdoc-cache-40 (1 file)
Files folder imagephpdoc-cache-55 (1 file)
Files folder imagephpdoc-cache-6e (1 file)
Files folder imagephpdoc-cache-89 (1 file)
Files folder imagephpdoc-cache-b2 (1 file)
Files folder imagephpdoc-cache-b7 (1 file)
Files folder imagephpdoc-cache-c5 (1 file)
Files folder imagephpdoc-cache-e1 (1 file)
Files folder imagephpdoc-cache-fb (1 file)
Files folder imagephpdoc-cache-ff (1 file)
Files folder imagereports (3 files)
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files  /  docs  /  classes  
File Role Description
  Accessible without login HTML file SVGCreator.Complex...s.LineEndArrow.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Element.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Elements.Circle.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Elements.Defs.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Elements.Group.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Elements.Line.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Elements.Marker.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Elements.Path.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Elements.Rect.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Elements.Svg.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Elements.Text.html Doc. Documentation
  Accessible without login HTML file SVGCreator.SVGException.html Doc. Documentation

  Files folder image Files  /  docs  /  css  
File Role Description
Files folder imagephpdocumentor-clean-icons (3 files, 1 directory)
  Accessible without login Plain text file jquery.iviewer.css Data Auxiliary data
  Accessible without login Plain text file prism.css Data Auxiliary data
  Accessible without login Plain text file template.css Data Auxiliary data

  Files folder image Files  /  docs  /  css  /  phpdocumentor-clean-icons  
File Role Description
Files folder imagefonts (5 files)
  Accessible without login Plain text file lte-ie7.js Data Auxiliary data
  Accessible without login Plain text file Read Me.txt Doc. Documentation
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  docs  /  css  /  phpdocumentor-clean-icons  /  fonts  
File Role Description
  Accessible without login Plain text file phpdocumentor-clean-icons.dev.svg Data Auxiliary data
  Accessible without login Plain text file phpdocumentor-clean-icons.eot Data Auxiliary data
  Accessible without login Plain text file phpdocumentor-clean-icons.svg Data Auxiliary data
  Accessible without login Plain text file phpdocumentor-clean-icons.ttf Data Auxiliary data
  Accessible without login Plain text file phpdocumentor-clean-icons.woff Data Auxiliary data

  Files folder image Files  /  docs  /  files  
File Role Description
Files folder imageexamples (6 files)
Files folder imagesrc (1 directory)
  Accessible without login HTML file examples.circle.php.html Doc. Documentation
  Accessible without login HTML file examples.complex.php.html Doc. Documentation
  Accessible without login HTML file examples.group.php.html Doc. Documentation
  Accessible without login HTML file examples.line.php.html Doc. Documentation
  Accessible without login HTML file examples.rect.php.html Doc. Documentation
  Accessible without login HTML file examples.text.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Com...neEndArrow.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Element.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Elements.Circle.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Elements.Defs.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Elements.Group.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Elements.Line.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Elements.Marker.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Elements.Path.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Elements.Rect.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Elements.Svg.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.Elements.Text.php.html Doc. Documentation
  Accessible without login HTML file src.SVGCreator.SVGException.php.html Doc. Documentation

  Files folder image Files  /  docs  /  files  /  examples  
File Role Description
  Accessible without login Plain text file circle.php.txt Doc. Documentation
  Accessible without login Plain text file complex.php.txt Doc. Documentation
  Accessible without login Plain text file group.php.txt Doc. Documentation
  Accessible without login Plain text file line.php.txt Doc. Documentation
  Accessible without login Plain text file rect.php.txt Doc. Documentation
  Accessible without login Plain text file text.php.txt Doc. Documentation

  Files folder image Files  /  docs  /  files  /  src  
File Role Description
Files folder imageSVGCreator (2 files, 2 directories)

  Files folder image Files  /  docs  /  files  /  src  /  SVGCreator  
File Role Description
Files folder imageComplexFigures (1 file)
Files folder imageElements (9 files)
  Accessible without login Plain text file Element.php.txt Doc. Documentation
  Accessible without login Plain text file SVGException.php.txt Doc. Documentation

  Files folder image Files  /  docs  /  files  /  src  /  SVGCreator  /  ComplexFigures  
File Role Description
  Accessible without login Plain text file LineEndArrow.php.txt Doc. Documentation

  Files folder image Files  /  docs  /  files  /  src  /  SVGCreator  /  Elements  
File Role Description
  Accessible without login Plain text file Circle.php.txt Doc. Documentation
  Accessible without login Plain text file Defs.php.txt Doc. Documentation
  Accessible without login Plain text file Group.php.txt Doc. Documentation
  Accessible without login Plain text file Line.php.txt Doc. Documentation
  Accessible without login Plain text file Marker.php.txt Doc. Documentation
  Accessible without login Plain text file Path.php.txt Doc. Documentation
  Accessible without login Plain text file Rect.php.txt Doc. Documentation
  Accessible without login Plain text file Svg.php.txt Doc. Documentation
  Accessible without login Plain text file Text.php.txt Doc. Documentation

  Files folder image Files  /  docs  /  graphs  
File Role Description
  Accessible without login HTML file class.html Doc. Documentation

  Files folder image Files  /  docs  /  images  
File Role Description
Files folder imageiviewer (8 files)
  Accessible without login Plain text file custom-icons.svg Data Auxiliary data
  Accessible without login Image file hierarchy-item.png Icon Icon image
  Accessible without login Image file icon-class-13x13.png Icon Icon image
  Accessible without login Plain text file icon-class.svg Data Auxiliary data
  Accessible without login Image file icon-interface-13x13.png Icon Icon image
  Accessible without login Plain text file icon-interface.svg Data Auxiliary data
  Accessible without login Image file icon-trait-13x13.png Icon Icon image
  Accessible without login Plain text file icon-trait.svg Data Auxiliary data

  Files folder image Files  /  docs  /  images  /  iviewer  
File Role Description
  Accessible without login Image file grab.cur Data Auxiliary data
  Accessible without login Image file hand.cur Data Auxiliary data
  Accessible without login Image file iviewer.rotate_left.png Icon Icon image
  Accessible without login Image file iviewer.rotate_right.png Icon Icon image
  Accessible without login Image file iviewer.zoom_fit.png Icon Icon image
  Accessible without login Image file iviewer.zoom_in.png Icon Icon image
  Accessible without login Image file iviewer.zoom_out.png Icon Icon image
  Accessible without login Image file iviewer.zoom_zero.png Icon Icon image

  Files folder image Files  /  docs  /  js  
File Role Description
  Accessible without login Plain text file jquery.dotdotdot-1.5.9.js Data Auxiliary data
  Accessible without login Plain text file jquery.dotdotdot-1.5.9.min.js Data Auxiliary data
  Accessible without login Plain text file jquery.iviewer.js Data Auxiliary data
  Accessible without login Plain text file jquery.iviewer.min.js Data Auxiliary data
  Accessible without login Plain text file jquery.smooth-scroll.js Data Auxiliary data
  Accessible without login Plain text file prism.min.js Data Auxiliary data

  Files folder image Files  /  docs  /  namespaces  
File Role Description
  Accessible without login HTML file default.html Doc. Documentation
  Accessible without login HTML file SVGCreator.ComplexFigures.html Doc. Documentation
  Accessible without login HTML file SVGCreator.Elements.html Doc. Documentation
  Accessible without login HTML file SVGCreator.html Doc. Documentation

  Files folder image Files  /  docs  /  phpdoc-cache-06  
File Role Description
  Plain text file phpdoc-cache-file_...f61d2c17e6cad53.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-0c  
File Role Description
  Plain text file phpdoc-cache-file_...7722cbc9b06e20c.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-11  
File Role Description
  Plain text file phpdoc-cache-file_...e1d2c735b894af3.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-16  
File Role Description
  Plain text file phpdoc-cache-file_...4f8898fd7e95111.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-24  
File Role Description
  Plain text file phpdoc-cache-file_...47d69101d67cbd4.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-29  
File Role Description
  Plain text file phpdoc-cache-file_...4ec6b27d3811304.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-2d  
File Role Description
  Plain text file phpdoc-cache-file_...7c37eebca1e6c50.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-2e  
File Role Description
  Accessible without login Plain text file phpdoc-cache-settings.dat Data Auxiliary data

  Files folder image Files  /  docs  /  phpdoc-cache-35  
File Role Description
  Accessible without login Plain text file phpdoc-cache-file_...5ae307c987691d1.dat Example Example script

  Files folder image Files  /  docs  /  phpdoc-cache-40  
File Role Description
  Accessible without login Plain text file phpdoc-cache-file_...d061c717076f0ee.dat Example Example script

  Files folder image Files  /  docs  /  phpdoc-cache-55  
File Role Description
  Accessible without login Plain text file phpdoc-cache-file_...ddf7351e7fc551e.dat Example Example script

  Files folder image Files  /  docs  /  phpdoc-cache-6e  
File Role Description
  Accessible without login Plain text file phpdoc-cache-file_...d54fd3448d0bf6a.dat Example Example script

  Files folder image Files  /  docs  /  phpdoc-cache-89  
File Role Description
  Accessible without login Plain text file phpdoc-cache-file_...1a696fd4667de9b.dat Example Example script

  Files folder image Files  /  docs  /  phpdoc-cache-b2  
File Role Description
  Plain text file phpdoc-cache-file_...92fe869f36846fa.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-b7  
File Role Description
  Plain text file phpdoc-cache-file_...056590de9e167c1.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-c5  
File Role Description
  Plain text file phpdoc-cache-file_...893f5cff7c30b4a.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-e1  
File Role Description
  Plain text file phpdoc-cache-file_...c914ef0aaf29c1d.dat Class Class source

  Files folder image Files  /  docs  /  phpdoc-cache-fb  
File Role Description
  Accessible without login Plain text file phpdoc-cache-file_...3050c9120def451.dat Example Example script

  Files folder image Files  /  docs  /  phpdoc-cache-ff  
File Role Description
  Plain text file phpdoc-cache-file_...ffbc81c91a71f78.dat Class Class source

  Files folder image Files  /  docs  /  reports  
File Role Description
  Accessible without login HTML file deprecated.html Doc. Documentation
  Accessible without login HTML file errors.html Doc. Documentation
  Accessible without login HTML file markers.html Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file circle.php Example Example script
  Accessible without login Plain text file complex-polygon.php Example Example script
  Accessible without login Plain text file complex.php Example Example script
  Accessible without login Plain text file group.php Example Example script
  Accessible without login Plain text file line.php Example Example script
  Accessible without login Plain text file pentagon.php Example Example script
  Accessible without login Plain text file polygon.php Example Example script
  Accessible without login Plain text file rect.php Example Example script
  Accessible without login Plain text file text.php Example Example script

  Files folder image Files  /  src  
File Role Description
Files folder imageSVGCreator (2 files, 2 directories)

  Files folder image Files  /  src  /  SVGCreator  
File Role Description
Files folder imageComplexFigures (2 files)
Files folder imageElements (10 files)
  Plain text file Element.php Class Class source
  Plain text file SVGException.php Class Class source

  Files folder image Files  /  src  /  SVGCreator  /  ComplexFigures  
File Role Description
  Plain text file ComplexPolygon.php Class Class source
  Plain text file LineEndArrow.php Class Class source

  Files folder image Files  /  src  /  SVGCreator  /  Elements  
File Role Description
  Plain text file Circle.php Class Class source
  Plain text file Defs.php Class Class source
  Plain text file Group.php Class Class source
  Plain text file Line.php Class Class source
  Plain text file Marker.php Class Class source
  Plain text file Path.php Class Class source
  Plain text file Polygon.php Class Class source
  Plain text file Rect.php Class Class source
  Plain text file Svg.php Class Class source
  Plain text file Text.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:602
This week:2
All time:5,182
This week:35Up