Download the PHP package laratusk/larasvg without Composer
On this page you can find all versions of the php package laratusk/larasvg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package larasvg
A modern Laravel package for SVG conversion with multiple provider support. Convert SVG files to PNG, PDF, EPS, and more using a fluent API and Laravel's Process facade.
Battle-Tested
Backed by over 80 million SVG-to-format conversions in production across three years, this codebase is truly battle-tested. Releasing it as a package was the logical evolution.
Requirements
- PHP 8.2+
- Laravel 10.x, 11.x, 12.x, or 13.x
- At least one converter installed:
- Resvg — recommended for PNG
- Inkscape 1.0+ — for PDF, EPS, PS, EMF, WMF
- rsvg-convert — lightweight, PNG/PDF/PS/EPS/SVG
- CairoSVG — Python-based, PNG/PDF/PS/SVG
Quick Install
Documentation
Visit the full documentation for detailed guides, usage examples, API reference, and more.
Features
- Multi-provider architecture — Switch between Resvg, Inkscape, rsvg-convert, and CairoSVG with a single method call
- Resvg (default) — Lightning-fast SVG to PNG conversion
- Inkscape — Full-featured SVG conversion to PNG, PDF, PS, EPS, EMF, WMF
- rsvg-convert — Lightweight librsvg tool for PNG, PDF, PS, EPS, and SVG output
- CairoSVG — Python-based converter using the Cairo 2D library; PNG, PDF, PS, SVG
- Custom drivers — Register your own converter via config or
SvgConverter::extend()— no package code changes needed - Fluent API — Chainable methods for dimensions, background, format, and provider-specific options
- Laravel Filesystem — Read from and write to any Laravel disk (S3, local, etc.)
- Stdout output — Pipe conversion output directly to stdout for streaming responses
- Facade — Clean
SvgConverter::static API with IDE autocompletion - Testable — Built on Laravel's Process facade with full
Process::fake()support - Setup command — Interactive
php artisan larasvg:setupto detect and install providers
Supported Formats
| Format | Resvg | Inkscape | rsvg-convert | CairoSVG |
|---|---|---|---|---|
| PNG | Yes | Yes | Yes | Yes |
| — | Yes | Yes | Yes | |
| SVG | — | Yes | Yes | Yes |
| PS | — | Yes | Yes | Yes |
| EPS | — | Yes | Yes | — |
| EMF | — | Yes | — | — |
| WMF | — | Yes | — | — |
Quick Start
Contributing
Please see CONTRIBUTING.md for details.
License
MIT License. See LICENSE for details.
All versions of larasvg with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/process Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/filesystem Version ^10.0|^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/process Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/filesystem Version ^10.0|^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
The package laratusk/larasvg contains the following files
Loading the files please wait ...