PHPackages                             moosylvania/moosylvania-silverstripe-boiler-plate - 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. moosylvania/moosylvania-silverstripe-boiler-plate

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

moosylvania/moosylvania-silverstripe-boiler-plate
=================================================

Boiler Plate for SilverStripe based off of HTML5 Boiler Plate as well as other best practices.

0111[2 PRs](https://github.com/Moosylvania/Moosylvania-SilverStripe-Boiler-Plate/pulls)CSS

Since Jul 1Pushed 10y ago4 watchersCompare

[ Source](https://github.com/Moosylvania/Moosylvania-SilverStripe-Boiler-Plate)[ Packagist](https://packagist.org/packages/moosylvania/moosylvania-silverstripe-boiler-plate)[ RSS](/packages/moosylvania-moosylvania-silverstripe-boiler-plate/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Moosylvania SilverStripe Boiler Plate
=====================================

[](#moosylvania-silverstripe-boiler-plate)

Boiler Plate setup of SilverStripe configured with best practices in mind.

This is loosely based off of the HTML5 Boiler Plate and provides a blank skeleton for you to start rapidly developing your site.

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

[](#requirements)

- SilverStripe 3.1.0+

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

[](#installation)

1. Clone Repository or with Composer

    ```
     "require" : { "moosylvania/moosylvania-silverstripe-boiler-plate":"dev-master" }

    ```
2. Edit /mysite/\_config.php and

- update the database configuration. The domain name set on line 10 would be your production url.
- Set your default admin password on line 35
- Set default admin email on line 62

3. Update /mysite/\_config/config.yml

- update the admin email address for error reporting. This will send you emails of errors on the site when in production.

4. Edit /mysite/code/Page.php

- update $jsItems on line 58 to specify your global scripts
- update $cssItems on line 77 to specify your global stylesheets

Documentation
-------------

[](#documentation)

### CSS and JS Minification

[](#css-and-js-minification)

One benefit of this boilerplate is we have setup auto concatenation and minification of your css and js files based off of each page type.

On the init function of your custom Page types controller, example HomePage - you would add the following

```
    $this->addCss(array('cssfileone', 'cssfiletwo'));
	$this->addJs(array('jsfileone', jsfiletwo));

```

In the example above cssfileone would be the name of a css file in /themes/mytheme/css without the .css. jsfileone would be a file located in /themes/mytheme/js/ without the .js extension

As a note, if you are using a different theme name the project will detect that and use the custom theme to locate the css and js files.

Lastly if you are running the site in 'Dev' mode - the files will not be concatenated or minified making it easier to debug.

### Google Analytics

[](#google-analytics)

Simply update /themes/mytheme/js/ga.js with your proper UA number, this is automatically included on every page.

### Facebook and Twitter JS SDK

[](#facebook-and-twitter-js-sdk)

This is automatically included via /themes/mytheme/js/SocialScripts.js. You can remove this from being included by changing your Page.php file

### Sass

[](#sass)

Should you choose to use Sass, we have a Sass folder under /themes/mytheme. When creating your Sass sheets, I would create a new file for each Page Type. Then when compiling, have the output go to /themes/mytheme/css

When doing this you will be able to use the CSS minification and concatenation features already built into the site.

### Robots.txt for QA and Production Environments

[](#robotstxt-for-qa-and-production-environments)

In the .htaccess file on lines 579-583, you will want to update the domain.com domain to your production site domain. This will then serve up a proper robots.txt file when your site is in production.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b58123837a8364d4ff51b9e31f46aecac3667a74a12e01a061a5c75484668f4?d=identicon)[obj63mc](/maintainers/obj63mc)

---

Top Contributors

[![obj63mc](https://avatars.githubusercontent.com/u/443120?v=4)](https://github.com/obj63mc "obj63mc (2 commits)")

### Embed Badge

![Health badge](/badges/moosylvania-moosylvania-silverstripe-boiler-plate/health.svg)

```
[![Health](https://phpackages.com/badges/moosylvania-moosylvania-silverstripe-boiler-plate/health.svg)](https://phpackages.com/packages/moosylvania-moosylvania-silverstripe-boiler-plate)
```

###  Alternatives

[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)

PHPackages © 2026

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