Download the PHP package roseblade/businessdata without Composer
On this page you can find all versions of the php package roseblade/businessdata. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roseblade/businessdata
More information about roseblade/businessdata
Files in roseblade/businessdata
Package businessdata
Short Description Adds standard business data to the website
License BSD-3-Clause
Informations about the package businessdata
roseblade/businessdata
A Silverstripe module that adds business contact details, structured data (JSON-LD), favicon generation, and social network links to your site via SiteConfig.
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<head>— supportsOrganization,LocalBusiness, andEventtypes - Favicon generation at multiple sizes from a single uploaded image, injected as
<link>tags - Social network links (stored as
SocialNetworkrecords, exposed assameAsin JSON-LD)
Requirements
- Silverstripe CMS ^6.0
- PHP ^8.1
Installation
Run a database build after installation:
or by visiting /dev/build?flush=all in your browser
Configuration
JSON-LD structured data
By default, JSON-LD is only output on the home page. You can change this in YAML:
To disable minification of the JSON-LD output (good for debugging purposes):
You can also control inclusion on a per-page basis in PHP:
Favicon
Upload a favicon image via Settings > Business > Branding in the CMS. The module will automatically generate and inject <link> 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:
To customise which icon sizes and <link> attributes are generated:
Values wrapped in {} are resolved as method calls on the generated image object (e.g. {getMimeType} calls $image->getMimeType()).
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:
All versions of businessdata with dependencies
silverstripe/framework Version ^6.0
league/iso3166 Version ^4.3
innoweb/silverstripe-international-phone-number-field Version ^6.0
sheadawson/silverstripe-dependentdropdownfield Version ^4.0
fromholdio/silverstripe-externalurlfield Version ^2.0
beastbytes/postcodesio Version ^1.0