PHP Classes
elePHPant
Icontem

PHP SVG Creator: Generate SVG chart documents

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (111)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-12-15 (7 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 477 All time: 5,533 This week: 1,134Up
Version License PHP version Categories  
svg-creator 1.0.1MIT/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
Name: Tio <contact>
Classes: 1 package by
Country: Portugal Portugal
Age: 34
All time rank: 304737 in Portugal Portugal
Week rank: 1554 Up24 in Portugal Portugal Up

Details provided by the author  
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, polygon is missing.

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, 8 directories)
Files folder imageexamples (8 files)
Files folder imagesrc (1 directory)
Plain text file composer.json Data Auxiliary data
Plain text file LICENSE Data Auxiliary data
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 imagereports (3 files)
  HTML file index.html Doc. Documentation

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

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

  Files folder image Files  /  docs  /  css  /  phpdocumentor-clean-icons  
File Role Description
Files folder imagefonts (2 files)
  Plain text file lte-ie7.js Data Auxiliary data
  Plain text file style.css Data Auxiliary data

  Files folder image Files  /  docs  /  css  /  phpdocumentor-clean-icons  /  fonts  
File Role Description
  Plain text file phpdocumentor-clean-icons.dev.svg Data Auxiliary data
  Plain text file phpdocumentor-clean-icons.svg Data Auxiliary data

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

  Files folder image Files  /  docs  /  files  /  examples  
File Role Description
  Plain text file circle.php.txt Doc. Documentation
  Plain text file complex.php.txt Doc. Documentation
  Plain text file group.php.txt Doc. Documentation
  Plain text file line.php.txt Doc. Documentation
  Plain text file rect.php.txt Doc. Documentation
  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)
  Plain text file Element.php.txt Doc. Documentation
  Plain text file SVGException.php.txt Doc. Documentation

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

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

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

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

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

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

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

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

  Files folder image Files  /  examples  
File Role Description
  Plain text file circle.php Example Example script
  Plain text file complex.php Example Example script
  Plain text file group.php Example Example script
  Plain text file line.php Example Example script
  Plain text file pentagon.php Example Example script
  Plain text file polygon.php Example Example script
  Plain text file rect.php Example Example script
  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:477All time:5,533
 This week:0This week:1,134Up