PHPackages                             kvnc/cache-images - 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. [Caching](/categories/caching)
4. /
5. kvnc/cache-images

ActiveLibrary[Caching](/categories/caching)

kvnc/cache-images
=================

This package adds image cache to laravel

1.0.6-stable(3y ago)035MITPHPPHP 8.0.\*

Since Sep 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/BackendDevops/resize-images)[ Packagist](https://packagist.org/packages/kvnc/cache-images)[ RSS](/packages/kvnc-cache-images/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (3)Versions (3)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a1a91d63deb2ae58bea464bffe85373afa40a7a8c1e9450825b08f6a6bc20054/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b766e632f63616368652d696d616765732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kvnc/cache-images)[![GitHub Tests Action Status](https://camo.githubusercontent.com/33edcf03a3994d703419bd05253a85e84f307f3f6cabc5da2c6a71712235dff6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6b766e632f726573697a652d696d616765732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/kvnc/resize-images/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b2c3e3d93b696e2ce623874b22fb9c85bd4ca3644c8323c3aa7693c3ba23b078/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6b766e632f726573697a652d696d616765732f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/kvnc/resize-images/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1b75dd784de22594eff3a821afed29507c43b465496918ace865599032bca707/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b766e632f63616368652d696d616765732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kvnc/cache-images)

Introduction
------------

[](#introduction)

Welcome to my first laravel library

This library has 2 configs which sets original file paths and filters (resizing templates)

```
     * Mapping key represent where the original image file placed
     * Example you store your blog images into uploads/blogs
     * Then your mapping should be like 'mapping' => [
     *  "blogs" => "uploads/blogs"
     * ]
     * blogs key represent the module parameter of your route , This means when you send blogs module parameter
     *  Library will search under uploads/blogs to find original file
     */
    'mapping' => [

    ],
    /**
     * Filters key represent the resizing width and height of template
     *  such as  'thumb' => ['width' => 100 ,'height' => 100 ]
     */
    'filters' => [

    ]

```

As you can see above you should set mapping and filters attributes of cache-image config file.

\###How to install

```
composer require kvnc/cache-images

```

Run this command on your terminal at the root of your laravel project

\##Configure To publish config file you should do vendor publish action

```
     php artisan vendor:publish --provider=Kvnc\CacheImages\CacheImageProvider

```

Then set config file And set your image file name eg duplicated.jpg to duplicated+jpg and send to route

you can use our helper function to send file on route

```
function getResizedImageUrl($filter,$module,$image_url): string
{
    $image = implode('+',explode('.',basename($image_url)));
    return route('kvnc_image_cache.cache',['filter'=>$filter,'module' => $module, 'filename'=> $image]);
}

```

Call `getResizedImageUrl ` in any image tag you need

Have fun Thanks for reading

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/kvncphp)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1374d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4739609?v=4)[Kevin Cieszkowski](/maintainers/kvnc)[@kvnc](https://github.com/kvnc)

### Embed Badge

![Health badge](/badges/kvnc-cache-images/health.svg)

```
[![Health](https://phpackages.com/badges/kvnc-cache-images/health.svg)](https://phpackages.com/packages/kvnc-cache-images)
```

###  Alternatives

[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M84](/packages/unisharp-laravel-filemanager)[illuminate/cache

The Illuminate Cache package.

12937.0M1.8k](/packages/illuminate-cache)[intervention/image-laravel

Laravel Integration of Intervention Image

1588.9M171](/packages/intervention-image-laravel)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21111.6k](/packages/iazaran-smart-cache)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
