PHPackages                             yoya/php-svg - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. yoya/php-svg

ActiveLibrary

yoya/php-svg
============

Read, edit, write, and render SVG files with PHP (yoya's customize)

v1.0.0(7y ago)017MITPHPPHP &gt;=5.3.3

Since Sep 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/yoya/php-svg)[ Packagist](https://packagist.org/packages/yoya/php-svg)[ Docs](http://pwiki.awm.jp/~yoya/?php-svg)[ RSS](/packages/yoya-php-svg/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (14)Used By (0)

php-svg (yoya's customize)
==========================

[](#php-svg-yoyas-customize)

This is a vector graphics library for PHP, which surely is a broad specification. That is due to the fact that the goal of this project is to offer features in three different, big areas:

- Generating SVG images from PHP code and outputting them, either into XML strings or into files.
- Loading and parsing XML strings into document trees that can be easily modified and then also turned back into strings.
- Transforming parsed or generated document trees into raster graphics, like PNG.

Contributing
------------

[](#contributing)

These tasks will take a lot of time and effort, so you are welcome to contribute if this is a project you are interested in.
In case you decide to contribute, please honor these things:

1. External libraries shall not be used.
2. Please set your editor to use 4 spaces for indentation. In general, it would be good to follow the existing code style for consistency.
3. Source files must end with a newline character.
4. By contributing code, you agree to license that code under the MIT license to this project.

---

Installation
------------

[](#installation)

### Composer (recommended)

[](#composer-recommended)

This package is available through Composer/Packagist:

```
$ composer require yoya/php-svg

```

### Manual

[](#manual)

[Download](https://github.com/yoya/php-svg/zipball/master) this repo, or the [latest release](https://github.com/yoya/php-svg/releases), and put it somewhere in your project. Then do:

```
