PHPackages                             lifeboat/silverstripe - 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. lifeboat/silverstripe

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

lifeboat/silverstripe
=====================

Lifeboat PHP SDK - Silverstripe Wrapper

036PHP

Since Apr 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lifeboat-app/lifeboat-silverstripe-recipe)[ Packagist](https://packagist.org/packages/lifeboat/silverstripe)[ RSS](/packages/lifeboat-silverstripe/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Lifeboat SDK - Silverstripe Recipe
==================================

[](#lifeboat-sdk---silverstripe-recipe)

A simple wrapper for [Lifeboat PHP SDK](https://github.com/lifeboat-app/php-sdk)

This wrapper provides access to 2 classes which your app can extend from to make it easy to create Lifeboat Apps. It also loads the `APP_ID` and `APP_SECRET` directly from your environment variables.

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

[](#installation)

You can install this module via [Composer](https://getcomposer.org). Run the command

```
composer require lifeboat/silverstripe

```

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

[](#configuration)

**.env**

```
LIFEBOAT_APP_ID='[[Your App ID goes here]]'
LIFEBOAT_APP_SECRET='[[Your App Secret goes here]]'
```

### Alternatively create a `.yml` config

[](#alternatively-create-a-yml-config)

**lifeboat.yml**

```
---
Name: lifeboat_config
After:
  - '#lifeboat_silverstripe_app'
---
Lifeboat\Models\Site:
  APP_ID: "[[YOUR APP ID]]"
  APP_SECRET: "[[YOUR APP SECRET]]"
---
```

Helper Classes
--------------

[](#helper-classes)

**Lifeboat\\Models\\Site**

```
// Get the current active site object
Lifeboat\Models\Site::curr();
```

This object will automatically store the user's active site and allows for automatic filtering of the objects so that you only show objects this user has access to.

**Lifeboat\\Controllers\\AppController**

```
class YourController extends Lifeboat\Controllers\AppController {}
```

By extending from the `AppController` class you'll ensure that anyone that interacts with your app is authenticated and is using the correct site object

**Lifeboat\\Extensions\\SiteObject**

```
YourObject:
  extensions:
    - Lifeboat\Extensions\SiteObject
```

Make sure to add the `SiteObject` extension to your Data Models. This will add a `Site` relationship and automatically filter objects based on the currently active site via `augmentSQL`.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90% 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/e6c548ff3a036de17daa4e307ca10b685c85e96ad571f4af9160afcd4662e179?d=identicon)[dylangrech92](/maintainers/dylangrech92)

---

Top Contributors

[![dylangrech92](https://avatars.githubusercontent.com/u/5817606?v=4)](https://github.com/dylangrech92 "dylangrech92 (9 commits)")[![chalie-ai](https://avatars.githubusercontent.com/u/262650352?v=4)](https://github.com/chalie-ai "chalie-ai (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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