PHPackages                             roseblade/businessdata - 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. roseblade/businessdata

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

roseblade/businessdata
======================

Adds standard business data to the website

0.0.2(3mo ago)060PHP

Since Apr 3Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/RosebladeMedia/silverstripe-business-data)[ Packagist](https://packagist.org/packages/roseblade/businessdata)[ RSS](/packages/roseblade-businessdata/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

roseblade/businessdata
======================

[](#rosebladebusinessdata)

A Silverstripe module that adds business contact details, structured data (JSON-LD), favicon generation, and social network links to your site via `SiteConfig`.

Features
--------

[](#features)

- Business name, description, legal name, address, telephone, and email fields on `SiteConfig`
- Automatic geo-coordinates lookup from postcode via the Postcodes.io API
- JSON-LD structured data (`schema.org`) injected into page `` — supports `Organization`, `LocalBusiness`, and `Event` types
- Favicon generation at multiple sizes from a single uploaded image, injected as `` tags
- Social network links (stored as `SocialNetwork` records, exposed as `sameAs` in JSON-LD)

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

[](#requirements)

- Silverstripe CMS ^6.0
- PHP ^8.1

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

[](#installation)

```
composer require roseblade/businessdata
```

Run a database build after installation:

```
vendor/bin/sake db:build
```

or by visiting `/dev/build?flush=all` in your browser

Configuration
-------------

[](#configuration)

### JSON-LD structured data

[](#json-ld-structured-data)

By default, JSON-LD is only output on the home page. You can change this in YAML:

```
Silverstripe\CMS\Model\SiteTree:
  include_site_jsonld: home   # 'home' (default) or 'all'
```

To disable minification of the JSON-LD output (good for debugging purposes):

```
Roseblade\BusinessData\DataExtension\SiteTreeExtension:
  minify_jsonld: false
```

You can also control inclusion on a per-page basis in PHP:

```
$page->setIncludeSiteSchemaData(true);  // force include
$page->setIncludeSiteSchemaData(false); // force exclude
```

### Favicon

[](#favicon)

Upload a favicon image via **Settings &gt; Business &gt; Branding** in the CMS. The module will automatically generate and inject `` tags at the following sizes: 16×16, 32×32, 96×96, 180×180, 300×300, and 512×512.

The default behaviour pads the image to a square with a white fill. You can override the fill colour or use a different resize function:

```
Roseblade\BusinessData\DataExtension\SiteTreeExtension:
  icon_fill: "#000000"         # background fill colour for padding (default: #ffffff)
  icon_size_function: pad      # Silverstripe image manipulation method (default: pad)
```

To customise which icon sizes and `` attributes are generated:

```
Roseblade\BusinessData\DataExtension\SiteTreeExtension:
  icons:
    - rel: icon
      sizes: 32x32
      type: "{getMimeType}"
    - rel: apple-touch-icon
      sizes: 180x180
      type: "{getMimeType}"
```

Values wrapped in `{}` are resolved as method calls on the generated image object (e.g. `{getMimeType}` calls `$image->getMimeType()`).

### Geo-coordinates

[](#geo-coordinates)

When a postcode is saved on `SiteConfig`, the module will automatically look up the latitude and longitude via the Postcodes.io API. To disable this:

```
Roseblade\BusinessData\DataExtension\SiteConfigExtension:
  update_geodata_by_api: false
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance84

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

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.

###  Release Activity

Cadence

Every ~295 days

Total

2

Last Release

116d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79709cf1f76ba0120e459da3effa93120ae0897393a34caa5200140c7e5fd728?d=identicon)[MatMorrisParker](/maintainers/MatMorrisParker)

---

Top Contributors

[![MatMorrisParker](https://avatars.githubusercontent.com/u/6892752?v=4)](https://github.com/MatMorrisParker "MatMorrisParker (6 commits)")

### Embed Badge

![Health badge](/badges/roseblade-businessdata/health.svg)

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

###  Alternatives

[fatturaelettronicaphp/fattura-elettronica

Pacchetto PHP per la lettura, la generazione e la validazione della fattura elettronica, sia per la Pubblica Amministrazione che tra privati (B2B)

4951.7k](/packages/fatturaelettronicaphp-fattura-elettronica)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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