Skip to content

Optimize SVG files #130

Description

@MathiasReker

I noticed your project, and I’d like to suggest using my PHP library to automatically optimize them the SVG files. It’s designed to reduce SVG size while preserving visual quality, and it integrates easily into PHP projects.

Here’s a minimal usage example:

<?php

declare(strict_types=1);

require_once __DIR__ . '/vendor/autoload.php';

use MathiasReker\PhpSvgOptimizer\Service\Facade\SvgOptimizerFacade;

$content = '<svg>...</svg>';

$content = SvgOptimizerFacade::fromString($content)->optimize()->getContent()

Link to the project: https://github.com/MathiasReker/php-svg-optimizer

Let me know if I can help. :-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions