PHPackages                             sim1-dev/larapicsum - 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. sim1-dev/larapicsum

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

sim1-dev/larapicsum
===================

Fetch images from Lorem Picsum API

016PHP

Since Apr 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sim1-dev/larapicsum)[ Packagist](https://packagist.org/packages/sim1-dev/larapicsum)[ RSS](/packages/sim1-dev-larapicsum/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Logo](https://camo.githubusercontent.com/d299f6e3ba5900a3668b28bf3d3206129a0edc89e48f707ee039917efa958f71/68747470733a2f2f6c61726176656c2e636f6d2f696d672f6c6f676f747970652e6d696e2e737667)](https://camo.githubusercontent.com/d299f6e3ba5900a3668b28bf3d3206129a0edc89e48f707ee039917efa958f71/68747470733a2f2f6c61726176656c2e636f6d2f696d672f6c6f676f747970652e6d696e2e737667)

[![MIT License](https://camo.githubusercontent.com/7c124530b7c185c6928998842a1a52ed4bfd21071bf67db8f325f470cc3160a3/68747470733a2f2f696d672e736869656c64732e696f2f61706d2f6c2f61746f6d69632d64657369676e2d75692e7376673f)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs)

Lorem Picsum API Integration
============================

[](#lorem-picsum-api-integration)

Did you desperately need a simple Laravel random image generator? No? Well, now you do!

Note
----

[](#note)

This package was created on Laravel version 8 and is currently untested on older versions, please let me know if you encounter issues with those.

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

[](#installation)

Install the package with Composer

```
  composer require sim1-dev/larapicsum
```

Usage/Examples
--------------

[](#usageexamples)

```
use Sim1dev\Larapicsum\Larapicsum;

//Get image as base64

$pic = new Larapicsum();
$pic->setWidth(1920);
$pic->setHeight(1080);
$pic->setGrayScale(1);
$pic->setBlur(4);
$pic->setSeed("i4Opv540Z3wq");
$pic->setFormat('webp');
return $pic->base64();

//Get image URL

$pic = new Larapicsum(400, 600, 1, 4, "webp", "test");
return $pic->url(); //"https://picsum.photos/seed/test/400/600?grayscale=1&blur=4.webp"

//Get Default Larapicsum Object
return new Larapicsum(); //{"width":300,"height":200,"grayscale":0,"blur":0,"format":"jpeg","seed":"","url":"https://picsum.photos/300/200?grayscale=0&blur=0.jpeg"}
```

Larapicsum Object Properties
----------------------------

[](#larapicsum-object-properties)

- string Seed - The seed of your image, using a specific seed will ensure you to always get the same image
- string Format - The format/extension of your image (default: "jpeg")
- number Width - The width of your image (px)
- number Height - The height of your image (px)
- number Grayscale (0/1) - Enables/Disables Grayscale for your image (API also supports higher numbers, but as now they don't differ at all from grayscale = 1)
- number Blur (0/10) - The amount of blur of your image (amount\*10%, example: blur = 4, final blur amount = 40%)

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

Author
------

[](#author)

- [@sim1-dev](https://github.com/sim1-dev) - Simone Tenisci

Buy [me](https://www.simonetenisci.it/) a coffee ☕
--------------------------------------------------

[](#buy-me-a-coffee-)

[![alt text](https://camo.githubusercontent.com/aa51cf072e17a3ee34b4b868e9c43edafa62654e77717bf51dd386157b1274a6/68747470733a2f2f706963732e70617970616c2e636f6d2f30302f732f4e4449325a5445785a5751744f4459344d5330305a545a694c5467344f4745745a6a63314d6d45794e6a59774e7a526a2f66696c652e504e47 "Donate with PayPal")](https://www.paypal.com/donate/?hosted_button_id=AS2MJZNHSQEQA)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f4ad5215a499f79894e0b9bf0803df8e69bb9c1048d3ecc9104ff9635507373?d=identicon)[sim1-dev](/maintainers/sim1-dev)

---

Top Contributors

[![sim1-dev](https://avatars.githubusercontent.com/u/66777748?v=4)](https://github.com/sim1-dev "sim1-dev (3 commits)")

### Embed Badge

![Health badge](/badges/sim1-dev-larapicsum/health.svg)

```
[![Health](https://phpackages.com/badges/sim1-dev-larapicsum/health.svg)](https://phpackages.com/packages/sim1-dev-larapicsum)
```

###  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)
