PHP Classes

phpSVG: Create and edit vectorial graphics in SVG files

Recommend this page to a friend!
  Info   View files View files (42)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 1,565 All time: 2,518 This week: 164Up
Version License PHP version Categories
php-svg 0.7GNU Lesser Genera...5.2XML, PHP 5, Graphics
Description 

Author

This package can create and edit vectorial graphics stored in SVG files.

It can open and parse an SVG XML file or create a new SVG document file with vectorial graphic elements of different types.

Currently this package supports elements of type: image, drawing paths, rectangles, lines, circles, ellipses, arbitrary shapes, images, text strings, gradients and styles.

The manipulated SVG documents can be exported back to SVG (compressed format or plain XML) or as an image in PNG, JPEG or GIF formats.

Innovation Award
PHP Programming Innovation award winner
August 2011
Winner


Prize: One downloadable e-book of choice by O'Reilly
SVG is a standard XML format for storing the definitions of two dimension vectorial graphics.

This class can be used to edit vectorial graphics by reading its definition from an SVG into objects that can be changed and then write it back to the SVG file.

Manuel Lemos
Picture of Eduardo "Trial Force" Bonfandini
  Performance   Level  
Name: Eduardo "Trial Force" ... is available for providing paid consulting. Contact Eduardo "Trial Force" ... .
Classes: 2 packages by
Country: Brazil Brazil
Age: 42
All time rank: 1594105 in Brazil Brazil
Week rank: 550 Up43 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Files folder image Files  
File Role Description
Files folder imageexample (13 files, 1 directory)
Files folder imagesvglib (20 files)
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file viewExample.php Example View example

  Files folder image Files  /  example  
File Role Description
Files folder imageresource (7 files)
  Accessible without login Plain text file adding_elements.svg.php Example Show how to add elements to SVG.
  Accessible without login Plain text file bitmapImage.svg.php Example Show how to add a bitmap imagem
  Accessible without login Plain text file findElements.php Example Show how to find elements.
  Accessible without login Plain text file gradient.svg.php Example Gradient Example
  Accessible without login Plain text file graph.php Example Example script
  Accessible without login Plain text file inkscape_test.php Example Inkscape example
  Accessible without login Plain text file javascript.svg.php Example Example script
  Accessible without login Plain text file merge.svg.php Example Example script
  Accessible without login Plain text file replace.svg.php Example Example script
  Accessible without login Plain text file simple.svg.php Example Example script
  Accessible without login Plain text file transformation_request.svg.php Example Tranformation trough resquest/get
  Accessible without login Plain text file upload_and_convert.php Example Show how to upload and convert a Files to PNG/JPPEG.
  Accessible without login Plain text file vectorize.php Example Example script

  Files folder image Files  /  example  /  resource  
File Role Description
  Accessible without login Plain text file apple.svg Data SVG example, used in other examples.
  Accessible without login Image file axel.png Data Resource
  Accessible without login Plain text file function.php Aux. Aux functions
  Accessible without login Plain text file image.svg Data an SVG with image, used in examples.
  Accessible without login Image file phpsvg.png Icon Logo
  Accessible without login Plain text file phpSVG.svg Data Logo
  Accessible without login Image file stick.png Icon a bitmap file used in examples.

  Files folder image Files  /  svglib  
File Role Description
  Accessible without login Plain text file CHANGELOG Data changelog file
  Plain text file inkscape.php Class Use inkscape to convert svg to png
  Accessible without login Plain text file svgcircle.php Example Example script
  Plain text file svgclippath.php Class Class source
  Plain text file svgellipse.php Class Class source
  Plain text file svggroup.php Class Class source
  Plain text file svgimage.php Class Represents a imae implementation
  Plain text file svglib.php Class main lib (instanced file)
  Plain text file svgline.php Class Class source
  Plain text file svglineargradient.php Class Gradient
  Plain text file svgpath.php Class used to draw a path
  Plain text file svgradialgradient.php Class Class source
  Plain text file svgrect.php Class Represent a Rect.
  Plain text file svgshape.php Class Simple shape, other class extends it.
  Plain text file svgshapeex.php Class Used to do a complex shape, it is a internal class.
  Plain text file svgstop.php Class Stop class ( a part of gradient)
  Plain text file svgstyle.php Class Define styles.
  Plain text file svgtext.php Class To create some text
  Accessible without login Plain text file VERSION Data vesion file
  Plain text file xmlelement.php Class Represent one element,

 Version Control Unique User Downloads Download Rankings  
 100%
Total:1,565
This week:0
All time:2,518
This week:164Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1730