PHPackages                             stuartcusackie/sglide - 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. stuartcusackie/sglide

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

stuartcusackie/sglide
=====================

A simple helper function for safely generating statamic glide image urls from fields as well as path strings.

1.0.1(3y ago)030MITPHPPHP ^7.4 || ^8.0

Since Dec 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/stuartcusackie/sglide)[ Packagist](https://packagist.org/packages/stuartcusackie/sglide)[ RSS](/packages/stuartcusackie-sglide/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

SCIE SGlide
===========

[](#scie-sglide)

A simple helper function for safely generating Statamic glide image urls from fields as well as path strings.

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

[](#installation)

```
composer require stuartcusackie/sglide

```

Publish
-------

[](#publish)

Don't forget to publish the config file and the missing image placeholder.

```
php artisan vendor:publish

```

Config
------

[](#config)

Set up your config file: config/sglide.php

Filesystems
-----------

[](#filesystems)

If you want to use the default disk in the config file, i.e. 'assets', then you'll need to set up the filesystem in config/filesystem.php.

```
'assets' => [
    'driver' => 'local',
    'root' => public_path('assets'),
    'url' => '/assets',
    'visibility' => 'public',
],

```

This allows you to create glide images from your website's public folder.

Usage
-----

[](#usage)

\*\* Using a Statamic Asset field inline \*\*

```

```

\*\* Using a Statamic Asset in a component \*\*

```
$this->imageUrl = sglide($imageField, [
    'width' => 700,
    'height' => 933,
    'fm' => 'webp',
    'fit' => 'crop_focal'
])->url;

```

\*\* Using a path string \*\*

```

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~493 days

Total

2

Last Release

1118d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b3b7f67ae3b509c07e97c7bf803427ae0965adeed933daa02bffc2a37c08333?d=identicon)[stuartcusackie](/maintainers/stuartcusackie)

---

Top Contributors

[![stuartcusackie](https://avatars.githubusercontent.com/u/20210934?v=4)](https://github.com/stuartcusackie "stuartcusackie (3 commits)")

### Embed Badge

![Health badge](/badges/stuartcusackie-sglide/health.svg)

```
[![Health](https://phpackages.com/badges/stuartcusackie-sglide/health.svg)](https://phpackages.com/packages/stuartcusackie-sglide)
```

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