PHPackages                             alan-mosko/photon-image-cdn - 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. [Image &amp; Media](/categories/media)
4. /
5. alan-mosko/photon-image-cdn

ActiveLibrary[Image &amp; Media](/categories/media)

alan-mosko/photon-image-cdn
===========================

CDN from Photon (Automattic) to Laravel

0361PHP

Since Jun 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/moskoweb/PhotonImageCdn)[ Packagist](https://packagist.org/packages/alan-mosko/photon-image-cdn)[ RSS](/packages/alan-mosko-photon-image-cdn/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Photon Image CDN Laravel
========================

[](#photon-image-cdn-laravel)

CDN from Photon (Automattic) to Laravel.

A practical and quick way to use Automattic CDN, created for WordPress, next to your Laravel project.

With Photon's CDN, you have a web-optimized image, removing all unnecessary information for the web, in addition to high speed and low latency.

Install
-------

[](#install)

```
composer require alan-mosko/photon-image-cdn

```

Add the service provider to the providers array and alias to the aliases array in config/app.php.

```
'providers' => [
    AlanMosko\PhotonImageCdn\PhotonImageCdnServiceProvider::class,
],

```

```
'aliases' => [
    'ImgCdn' => AlanMosko\PhotonImageCdn\Helpers\PhotonImageCdnHelper::class,,
],

```

Publish the configuration:

```
php artisan vendor:publish

```

Usage
-----

[](#usage)

So you can use the images through the Photon CDN is very simple.

You have two options for using the images, one being just to get the new URL of your image in Photon.

And the other way, is by creating the tag directly with the Photon URL.

```
// Image URL

// Image Tag
{!! ImgCdn::tag('https://picsum.photos/1000/500/', 'Imagem de Teste') !!}

```

Config
------

[](#config)

```
return [
    'quality' => 70, // Quality of image requested for Photon
    'max_width' => null,
    'max_height' => null,
    'server' => '3' // 0-3 or random
];

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9651c7acf41bb74bf3f57cd627683d0bf645188877755b4b6e99b5b6da86815?d=identicon)[moskoweb](/maintainers/moskoweb)

### Embed Badge

![Health badge](/badges/alan-mosko-photon-image-cdn/health.svg)

```
[![Health](https://phpackages.com/badges/alan-mosko-photon-image-cdn/health.svg)](https://phpackages.com/packages/alan-mosko-photon-image-cdn)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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