PHP Package: spatie/image-optimizer

An image optimization PHP library designed for improving SEO by reducing file sizes and enhancing loading times.

Current Version: 1.8.0
Last Updated: 2024-11-04
PHP Requirement: ^7.3|^8.0
Dependencies:
spatie/image
spatie/laravel-image-optimizer
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The image-optimizer library by spatie is a powerful PHP tool that optimizes images to boost SEO performance. By compressing images and reducing their file sizes, it helps websites load faster and rank higher in search engine results. With support for various image formats and optimization techniques, this library is an essential asset for web developers looking to enhance their website's SEO capabilities.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.8.0

Download Download v1.8.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/image-optimizer/1.8.0/loader.php';
require_once 'libs/spatie/image/3.8.6/loader.php';
require_once 'libs/spatie/laravel-image-optimizer/1.8.2/loader.php';

use Spatie\ImageOptimizer\OptimizerChain;
use Spatie\ImageOptimizer\Optimizers\Jpegoptim;

$obj = new OptimizerChain();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.