PHPackages                             milkyway-multimedia/ss-mwm-core - 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. milkyway-multimedia/ss-mwm-core

ActiveSilverstripe-module

milkyway-multimedia/ss-mwm-core
===============================

Some basic utilities used across multiple Milkyway Multimedia modules

04841[2 issues](https://github.com/milkyway-multimedia/ss-mwm-core/issues)PHP

Since Apr 1Pushed 10y ago2 watchersCompare

[ Source](https://github.com/milkyway-multimedia/ss-mwm-core)[ Packagist](https://packagist.org/packages/milkyway-multimedia/ss-mwm-core)[ RSS](/packages/milkyway-multimedia-ss-mwm-core/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Milkyway Multimedia - Silverstripe Core Extensions
==================================================

[](#milkyway-multimedia---silverstripe-core-extensions)

Features
--------

[](#features)

- New utility methods to use across your projects
- Allow uploads in UploadField
- Tabs can be loaded from URL hashes
    - You can also link to tabs if your link has the class: `ss-tabset-goto`
- New context menu options for your SiteTree
    - Publish Record
    - Unpublish Record
    - Delete permanently
- Allow cookie\_path and cookie\_domain to be set for Cookies

Additional methods included on extensions
-----------------------------------------

[](#additional-methods-included-on-extensions)

- Controller
    - -&gt;BackLink
    - -&gt;displayNiceView(): Display this controller in a pretty website style page
    - -&gt;respondToFormAppropriately(): Either return a json encoded response or a redirect when not in an ajax request
- DataObject
    - -&gt;i18n\_description()
    - -&gt;firstOrMake($filter = \[\], $additionalData = \[\], $write = true): Get matching record, or make if it doesnt exist
    - -&gt;is\_a($class): *for templates*
    - -&gt;is\_not\_a($class): *for templates*
    - -&gt;InheritedObj($fieldName): Get an inherited object (dot notation allowed). It will check the following:
        1. Cache
        2. Method on current object
        3. If object has parent method (or extends @Hierarchy), it will check the parents
        4. Check home page if it exists
        5. Check SiteConfig if it exists
- DBField: This has quite a few new methods, check the phpdoc for more info
- Member:
    - -&gt;canAccessCMS()

singleton('director')
---------------------

[](#singletondirector)

This extends Director and has a few utility methods related to dealing with the SiteTree and Controllers, and adds some new template globals

- secureBaseURL
- nonSecureBaseURL
- baseWebsiteURL - The url without the protocol or www, the pretty url
- protocol
- homePage
- isHomePage($page = SiteTree|int)
- adminLink
- siteConfig

singleton('mwm')
----------------

[](#singletonmwm)

Some utility methods to deal with some stuff I could not do with vanilla Silverstripe, and also adds some new template globals

- canAccessCMS
- canEditCurrentPage
- appDir
- is($type = string)

Install
-------

[](#install)

Add the following to your composer.json file

```

    "require"          : {
		"milkyway-multimedia/ss-mwm-core": "dev-master"
	}

```

License
-------

[](#license)

- MIT

Version
-------

[](#version)

- Version 0.3 (Alpha)

Contact
-------

[](#contact)

#### Mellisa Hankins

[](#mellisa-hankins)

- E-mail:
- Twitter: [@mi3ll](https://twitter.com/mi3ll "mi3ll on twitter")
- Website: mellimade.com.au

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/873db53f59bc2f8309c506d1b56313b0c7d8c7b3160eb1700ee0754d060f9767?d=identicon)[mi3ll](/maintainers/mi3ll)

### Embed Badge

![Health badge](/badges/milkyway-multimedia-ss-mwm-core/health.svg)

```
[![Health](https://phpackages.com/badges/milkyway-multimedia-ss-mwm-core/health.svg)](https://phpackages.com/packages/milkyway-multimedia-ss-mwm-core)
```

PHPackages © 2026

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