PHP Classes

How to Implement a PHP SVG Generator Using the Package SVG Creator: Compose vectorial graphics and generate SVG files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-08-21 (Yesterday) RSS 2.0 feedNot enough user ratingsTotal: 18 This week: 2All time: 11,305 This week: 27Up
Version License PHP version Categories
svgcreator 1.1.0GNU General Publi...8.1Graphics, Files and Folders, PHP 7
Description 

Author

This package can compose vectorial graphics and generate SVG files.

It provides several classes that can compose an XML document with the structure of an SVG document with several types of vectorial graphic elements.

The main SVG class can return a string with the SVG document in XML format to a string or a file.

Currently it supports the SVG vectorial graphic elements:

- Comments

- Groups

- Text

- Text path

- Circle

- Ellipse

- Line

- Path

- Poligon

- Polyline

- Rectangle

- Shape

- Linear gradient

- Stop gradient

- Radial gradient

- Blend filter

- Drop shadow filter

- Flood filter

- Gaussian filter

- Offset filter

Picture of Stefan Kientzler
  Performance   Level  
Innovation award
Innovation award
Nominee: 11x

Winner: 6x

 

Details

SVGCreator

Latest Stable Version License Donate Minimum PHP Version PhpUnit coverage

Overview

This package can compose vectorial graphics and generate SVG files.

It provides several classes that can compose an XML document with the structure of an SVG document with several types of vectorial graphic elements. The main SVG class can return a string with the SVG document in XML format to a string or a file.

Currently it supports the SVG vectorial graphic elements: - Core elements - Comments - Groups - Images - Symbols - Text elements - Text - Text path - Shapes - Circle - Ellipse - Line - Path - Poligon - Polyline - Rectangle - Filter - Blend filter - Drop shadow filter - Flood filter - Gaussian filter - Offset filter - Gradients - Linear gradient - Stop gradient - Radial gradient - Marker - ArrowMarker - BasicMarker - Extended shapes - Blockarrow - Star

Usage

For usage see the several examples in the './examples' directory

Documentation

A full documentation can be found in the Wiki at GitHub.com


  Files folder image Files (134)  
File Role Description
Files folder imagedoc (2 files)
Files folder imageexamples (8 files, 2 directories)
Files folder imageSKien (1 directory)
Files folder imageTests (1 directory)
Accessible without login Plain text file autoloader.php Aux. Auxiliary script
Accessible without login Plain text file clover.xml Data Auxiliary data
Accessible without login Plain text file coverage.txt Doc. Documentation
Accessible without login Plain text file githubwiki.xml Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpstan.neon Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file PhpUnitCoverageBadge.php Example Example script
Accessible without login Plain text file PhpUnitCoverageBadge.svg Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation
Accessible without login HTML file SVGPlayground.html Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:18
This week:2
All time:11,305
This week:27Up