PHPackages                             snowfire/snowfire-app - 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. snowfire/snowfire-app

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

snowfire/snowfire-app
=====================

1.0(11y ago)0523[1 PRs](https://github.com/Snowfire/snowfire-app/pulls)PHPPHP &gt;=5.4.0

Since Feb 10Pushed 1y ago6 watchersCompare

[ Source](https://github.com/Snowfire/snowfire-app)[ Packagist](https://packagist.org/packages/snowfire/snowfire-app)[ RSS](/packages/snowfire-snowfire-app/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

Snowfire App
------------

[](#snowfire-app)

This packages makes it possible to connect your Laravel app to Snowfire.

Install the package
-------------------

[](#install-the-package)

Add this to your composer.json

```
"snowfire/snowfire-app": "dev-master"

```

Add this to your service providers in `config/app.php`

```
'Snowfire\App\SnowfireServiceProvider'

```

Add this to your route middlewares in `app/Http/Kernel.php`

```
'snowfire' => 'Snowfire\App\Middleware\SnowfireMiddleware',
'snowfireAdmin' => 'Snowfire\App\Middleware\SnowfireAdminMiddleware',

```

Publish the config file

```
$ php artisan vendor:publish

```

Create the database table for snowfire installations

```
$ php artisan migrate

```

Seed data
---------

[](#seed-data)

Add this to your `DatabaseSeeder.php`

```
$this->call('\Snowfire\App\Storage\Seeder');

```

CSRF protection
---------------

[](#csrf-protection)

If you have CSRF middleware activated in `app/Http/Kernel.php` open `app/Http/Middleware/VerifyCsrfToken.php` and add the following to the handle method:

```
if ($request->header('User-Agent') == 'Snowfire')
{
	return $next($request);
}
```

Integration possibilities
-------------------------

[](#integration-possibilities)

There are two different ways to connect your app to Snowfire. As a link in the admin area and as a public action.

### Example

[](#example)

Lets say you have a list of events. A public action will be something like `http://your-app.com/events/all` which will render an HTML `` list. Then you will have an admin link from Snowfire to `http://your-app.com/admin` which will let users add/edit/remove events.

Start by adding your actions to `config/snowfire_app.php`

```
return [
	'id' => 'demo_app',
	'name' => 'Demo app',
	'tab' => 'admin',
	'actions' => [
		'events' => 'action.events.index',
		'event' => 'action.events.show',
	]
];
```

This config adds the admin link as a named route called `snowfire.tab` and a route for all events. Both tab and actions are optional (but you need one of them, right?)

#### Your `routes.php`

[](#your-routesphp)

```
// Admin routes
Route::group(['prefix' => 'admin/{snowfireAppId}', 'before' => 'snowfireAppAuth', 'namespace' => 'Admin'], function()
{
	Route::get('/', ['as' => 'admin.index', function($appId)
    {
        return 'Admin for appId: ' . $appId;
    }]);

});

// Action routes
Route::group(['namespace' => 'Action'], function()
{
	Route::get('events', ['uses' => 'EventsController@index', 'as' => 'action.events.index']);
	Route::get('events/{id}', ['uses' => 'EventsController@event', 'as' => 'action.events.show']);
});
```

This creates an admin route and the public action. The admin route is behind a snowfireAppAuth filter which makes sure the user is logged in and trusted.

### Your Snowfire snippet to the public event list

[](#your-snowfire-snippet-to-the-public-event-list)

Login to Snowfire and install the app (System -&gt; Apps)

```
http://your-hosted-app.com/snowfire/install

```

Create a new snippet with this code:

```

    All events

```

**Warning:** Adding applications to the root / (i.e the home page) is currently not supported. Please create a sub page to add your app.

Now just add the snippet to a page and it will show you a list of events.

Links
-----

[](#links)

When you are working in an action that will be rendered within Snowfire, you need to use:

```
A linked route
```

This will make sure the links works from within Snowfire.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~11 days

Total

2

Last Release

4149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4513288839d184d222046f71ee9e2e29ad676e4da76329151b517939bf1b5139?d=identicon)[emilsundberg](/maintainers/emilsundberg)

---

Top Contributors

[![emilsundberg](https://avatars.githubusercontent.com/u/215958?v=4)](https://github.com/emilsundberg "emilsundberg (25 commits)")

### Embed Badge

![Health badge](/badges/snowfire-snowfire-app/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M277](/packages/illuminate-pipeline)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.6M369](/packages/illuminate-redis)

PHPackages © 2026

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