PHPackages                             astrotomic/laravel-weserv-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. [Image &amp; Media](/categories/media)
4. /
5. astrotomic/laravel-weserv-images

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

astrotomic/laravel-weserv-images
================================

A fluent URL generator for images.weserv.nl with Laravel bindings.

1.0.0(5y ago)72371MITPHPPHP ^7.4CI failing

Since Feb 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Astrotomic/laravel-weserv-images)[ Packagist](https://packagist.org/packages/astrotomic/laravel-weserv-images)[ Docs](https://astrotomic.info)[ Fund](https://offset.earth/treeware)[ GitHub Sponsors](https://github.com/Gummibeer)[ RSS](/packages/astrotomic-laravel-weserv-images/feed)WikiDiscussions main Synced yesterday

READMEChangelog (8)Dependencies (6)Versions (9)Used By (0)

Laravel images.weserv.nl
========================

[](#laravel-imagesweservnl)

[![Latest Version](https://camo.githubusercontent.com/ee1b3d1ffb88368909a6f9231e5a0078e1091e5aff75e940e7987be022f1fc73/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617374726f746f6d69632f6c61726176656c2d7765736572762d696d616765732e7376673f6c6162656c3d52656c65617365267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/astrotomic/laravel-weserv-images)[![MIT License](https://camo.githubusercontent.com/990b42cec8e216935d9947630bb2c1b669aaf8fd7abd4748b584cf3b92cf4562/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f417374726f746f6d69632f6c61726176656c2d7765736572762d696d616765732e7376673f6c6162656c3d4c6963656e736526636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://github.com/Astrotomic/laravel-weserv-images/blob/master/LICENSE)[![Offset Earth](https://camo.githubusercontent.com/d204555ebe1fb0ae82d10c97b4f4ffc2dfdd2ba1489f98be7f7e8708333a0466/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d677265656e3f7374796c653d666f722d7468652d6261646765)](https://plant.treeware.earth/Astrotomic/laravel-weserv-images)[![Larabelles](https://camo.githubusercontent.com/a2c8d5126ddd8c5ddc627176d1d2e0568f8399b50038e71fd7f774c3e24dbe4b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726162656c6c65732d2546302539462541362538342d6c6967687470696e6b3f7374796c653d666f722d7468652d6261646765)](https://www.larabelles.com/)

[![GitHub Workflow Status](https://camo.githubusercontent.com/4ea9c228cf9d9706c58518c62621341fc1ef6b3e436f67d11786030f0fc34ec8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f417374726f746f6d69632f6c61726176656c2d7765736572762d696d616765732f72756e2d74657374733f7374796c653d666c61742d737175617265266c6f676f436f6c6f723d7768697465266c6f676f3d676974687562266c6162656c3d5465737473)](https://github.com/Astrotomic/laravel-weserv-images/actions?query=workflow%3Arun-tests)[![StyleCI](https://camo.githubusercontent.com/08f3cc3f0fe5fa7f00d1bda13f08c4a86352cf8fdd1aba21edbac96b835ad1a1/68747470733a2f2f7374796c6563692e696f2f7265706f732f3234333938303134342f736869656c64)](https://styleci.io/repos/243980144)[![Total Downloads](https://camo.githubusercontent.com/753be9360b8fcb226c66a91f6fb24ea098dd69bdaf00d6d16a613c0ba4447e18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617374726f746f6d69632f6c61726176656c2d7765736572762d696d616765732e7376673f6c6162656c3d446f776e6c6f616473267374796c653d666c61742d737175617265)](https://packagist.org/packages/astrotomic/laravel-weserv-images)

This package provides a Laravel wrapper for the fluent URL builder [astrotomic/php-weserv-images](https://github.com/Astrotomic/php-weserv-images).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require astrotomic/laravel-weserv-images
```

```
php artisan vendor:publish --provider="Astrotomic\Weserv\Images\Laravel\WeservImagesServiceProvider" --tag=config
```

Usage
-----

[](#usage)

```
use Astrotomic\Weserv\Images\Enums\Fit;

echo weserv('https://images.weserv.nl/lichtenstein.jpg')
    ->w(512)
    ->h(512)
    ->we()
    ->fit(Fit::INSIDE);
// https://images.weserv.nl/?w=512&h=512&we=1&fit=inside&url=https%3A%2F%2Fimages.weserv.nl%2Flichtenstein.jpg
```

[![](https://camo.githubusercontent.com/2586ae1f3bfb74707ab75ae0880f1e88b587ff9616c9d65bc4640702328abfef/68747470733a2f2f696d616765732e7765736572762e6e6c2f3f773d35313226683d3531322677653d31266669743d696e736964652675726c3d6874747073253341253246253246696d616765732e7765736572762e6e6c2532466c69636874656e737465696e2e6a7067)](https://camo.githubusercontent.com/2586ae1f3bfb74707ab75ae0880f1e88b587ff9616c9d65bc4640702328abfef/68747470733a2f2f696d616765732e7765736572762e6e6c2f3f773d35313226683d3531322677653d31266669743d696e736964652675726c3d6874747073253341253246253246696d616765732e7765736572762e6e6c2532466c69636874656e737465696e2e6a7067)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/Astrotomic/.github/blob/master/CONTRIBUTING.md) for details. You could also be interested in [CODE OF CONDUCT](https://github.com/Astrotomic/.github/blob/master/CODE_OF_CONDUCT.md).

### Security

[](#security)

If you discover any security related issues, please check [SECURITY](https://github.com/Astrotomic/.github/blob/master/SECURITY.md) for steps to report it.

Credits
-------

[](#credits)

- [Tom Witkowski](https://github.com/Gummibeer)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Treeware
--------

[](#treeware)

You're free to use this package, but if it makes it to your production environment I would highly appreciate you buying the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to [plant trees](https://www.bbc.co.uk/news/science-environment-48870920). If you contribute to my forest you’ll be creating employment for local families and restoring wildlife habitats.

You can buy trees at [offset.earth/treeware](https://plant.treeware.earth/Astrotomic/laravel-weserv-images)

Read more about Treeware at [treeware.earth](https://treeware.earth)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% of commits — single point of failure

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 ~16 days

Recently: every ~29 days

Total

8

Last Release

2148d ago

Major Versions

0.5.0 → 1.0.02020-06-24

### Community

Maintainers

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

---

Top Contributors

[![Gummibeer](https://avatars.githubusercontent.com/u/6187884?v=4)](https://github.com/Gummibeer "Gummibeer (67 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![jamesmills](https://avatars.githubusercontent.com/u/557096?v=4)](https://github.com/jamesmills "jamesmills (1 commits)")

---

Tags

cdnhacktoberfestimage-cdnimage-manipulationimage-processingimages-weservlaraveltreewareimagesastrotomicweservlaravel-weserv-images

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/astrotomic-laravel-weserv-images/health.svg)

```
[![Health](https://phpackages.com/badges/astrotomic-laravel-weserv-images/health.svg)](https://phpackages.com/packages/astrotomic-laravel-weserv-images)
```

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)

PHPackages © 2026

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