Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/galvao-eti/php-svg
A simple component that extends PHP's dom-ext to produce SVG documents
https://github.com/galvao-eti/php-svg
php svg
Last synced: about 1 month ago
JSON representation
A simple component that extends PHP's dom-ext to produce SVG documents
- Host: GitHub
- URL: https://github.com/galvao-eti/php-svg
- Owner: galvao-eti
- License: apache-2.0
- Created: 2024-06-15T01:25:02.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T08:24:02.000Z (7 months ago)
- Last Synced: 2024-11-27T05:45:56.154Z (about 1 month ago)
- Topics: php, svg
- Language: PHP
- Homepage:
- Size: 611 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-svg
![Logo](media/logo.png)A simple component that extends [PHP's dom-ext](https://www.php.net/manual/en/book.dom.php) to produce [SVG](https://www.w3.org/Graphics/SVG/) documents
The component is in it's initial phase and in alpha release. The intended use case is to draw diagrams from server objects, such as databases, classes, dependencies, etc...
## Basic Usage
1. Initialize php-svg;
2. Add Elements;
3. Process the Output.php-svg has one single method that outputs the svg document as a string so you can, for an example, pipe it to a binary or direct it to a file.
See the [shapes](bin/example/shapes) example for details.
## License
Licensed via the Apache License by [Galvão Desenvolvimento Ltda](https://galvao.eti.br/).
## Credits
php-svg's logo is a a work done on top of the PHP's [ElePHPant](https://www.vincentpontier.com/elephpant/) (by [Vincent Pontier](https://www.vincentpontier.com/)) and the SVG logo (by [W3C](https://www.w3.org/)).