PHPackages                             jellygnite/silverstripe-enhance - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jellygnite/silverstripe-enhance

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

jellygnite/silverstripe-enhance
===============================

Various improvements to a SilverStripe installation.

5.0.0(1y ago)06111BSD-3-ClausePHP

Since Nov 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jellygnite/silverstripe-enhance)[ Packagist](https://packagist.org/packages/jellygnite/silverstripe-enhance)[ RSS](/packages/jellygnite-silverstripe-enhance/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (9)Dependencies (3)Versions (10)Used By (1)

Jellygnite Enhance
==================

[](#jellygnite-enhance)

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

[](#introduction)

This contains various improvements to the Silverstripe installation.

Requirements
------------

[](#requirements)

- SilverStripe ^4.0

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

[](#installation)

```
composer require jellygnite/silverstripe-enhance

```

Notes
-----

[](#notes)

### Get Class Basename

[](#get-class-basename)

Can be used in templates to get simpified version of PageClass. e.g.

```

```

### Image Brightness

[](#image-brightness)

Occasionally when you use an Image as a slide background or similar and you want to overlay text on it, it is good to know if the Image is light or dark so you can choose the respective text colour.

This extension adds a new column `Luminance` to the Image table that stores the image's brightness.

You can call the $IsDark or $IsLight function in your template. e.g.

```

```

### SVG Files

[](#svg-files)

Create an object using the File::class not Image::class as SVG files aren't the same as binary data image files.

```
private static $has_one = [
  "Logo" => File::class
];

```

Then when adding the upload field to your FieldsList, only allow normal images and the new category 'image/unsupported'. This will allow the user to upload standard image files and SVG files.

```
$uploadField->setAllowedFileCategories(['image/supported','image/unsupported']);

```

You can then refer to the image in your template using all the image manipulation functions. You don't have to check if it is an SVG first. Any image manipulation functions will be ignored and the orginal SVG will be returned in an [![]($URL)]($URL) tag.

If you are allowing SVG uploads, to avoid potential for script execution in malicious SVG files, it is safer to use in your template. Best to limit uploads to admin only, i.e. don't enable SVG upload in front end.

```
$Logo.ScaleWidth(250)

```

Check if an image is an SVG.

```
do something

```

### SiteConfig Extension

[](#siteconfig-extension)

The following fields are added to Settings.

```
    private static $db = [
		"AdministratorEmail" => "Varchar(254)",
		"Phone" => "Varchar(50)",
		"Fax" => "Varchar(50)",
		"Email" => "Varchar(254)",
		"Company" => "Text",
		"ABN" => "Varchar(50)",
		"Address" => "Text",
		"Postal" => "Text",
		"OpeningHours" => "Text",
		"MapAddress" => "Varchar(254)",
		"Latitude" => "Decimal(9,5)",
		"Longitude" => "Decimal(9,5)",
		"Zoom" => "Int",

		"FacebookURL" 	=> "Varchar(255)",
		"TwitterURL" 	=> "Varchar(255)",
		"LinkedInURL" 	=> "Varchar(255)",
		"InstagramURL" 	=> "Varchar(255)",

		"MapURL" 	=> "Varchar(255)",
    ];

	private static $has_one = [
	    "Logo" => File::class,
	    "ExtraLogo" => File::class,
	    "DefaultBanner" => Image::class
	]

```

Map embed code method allows you to embed a simple google map iframe without using the Google Maps API. Most of the time this is all that is needed so saves the hassle of getting an account set up for the client.

The map is created based on the data entered into MapAddress. Or a precise location can be added using Latitude and Longitude.

```

$SiteConfig.MapEmbedCode

```

### WebP Support

[](#webp-support)

Support for webP images is added. This will only work if you have webP functions available in GD or ImageMagick.

Check if an image is webP.

```
do something

```

TODO: Thumbnails in CMS. I think this is in asset-admin/client/dist/js/bundle.js

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Recently: every ~356 days

Total

9

Last Release

613d ago

Major Versions

4.0.7 → 5.0.02024-10-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/458854?v=4)[Jellygnite](/maintainers/Jellygnite)[@jellygnite](https://github.com/jellygnite)

---

Top Contributors

[![jellygnite](https://avatars.githubusercontent.com/u/458854?v=4)](https://github.com/jellygnite "jellygnite (12 commits)")

---

Tags

silverstripecms

### Embed Badge

![Health badge](/badges/jellygnite-silverstripe-enhance/health.svg)

```
[![Health](https://phpackages.com/badges/jellygnite-silverstripe-enhance/health.svg)](https://phpackages.com/packages/jellygnite-silverstripe-enhance)
```

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5163.5M1.3k](/packages/silverstripe-cms)

PHPackages © 2026

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