PHPackages                             lekoala/silverstripe-micro-framework - 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. [Framework](/categories/framework)
4. /
5. lekoala/silverstripe-micro-framework

ActiveSilverstripe-vendormodule[Framework](/categories/framework)

lekoala/silverstripe-micro-framework
====================================

A micro framework for SilverStripe

04PHP

Since Nov 10Pushed 4y ago2 watchersCompare

[ Source](https://github.com/lekoala/silverstripe-micro-framework)[ Packagist](https://packagist.org/packages/lekoala/silverstripe-micro-framework)[ RSS](/packages/lekoala-silverstripe-micro-framework/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SilverStripe Micro Framework
============================

[](#silverstripe-micro-framework)

[![Build Status](https://camo.githubusercontent.com/f007b6c48ee56263a8978baf7f5bb84d7df620e1bdbd9181445f12ea11c744a0/68747470733a2f2f7472617669732d63692e636f6d2f6c656b6f616c612f73696c7665727374726970652d6d6963726f2d6672616d65776f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/lekoala/silverstripe-micro-framework/)[![scrutinizer](https://camo.githubusercontent.com/bfd3b3cec68b9fea9d03365bb4a765e105ebc9003f6a5e6df0bf03ab0da9ffed/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c656b6f616c612f73696c7665727374726970652d6d6963726f2d6672616d65776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lekoala/silverstripe-micro-framework/)[![Code coverage](https://camo.githubusercontent.com/c0fc4dd52a75840da76161315e9ceb4dcb928f2284040c28e52c8d06461d3b83/68747470733a2f2f636f6465636f762e696f2f67682f6c656b6f616c612f73696c7665727374726970652d6d6963726f2d6672616d65776f726b2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/lekoala/silverstripe-micro-framework)

Intro
-----

[](#intro)

This module makes it easier to use standalone SilverStripe framework without the Cms module.

It can also run a website without any database configured.

WARNING : this is highly experimental :-)

Replace your index.php
----------------------

[](#replace-your-indexphp)

In order to use this, you need to replace the default index.php with this

```
// Force specific constants
define('BASE_PATH', dirname(__DIR__));
define('PUBLIC_DIR', 'public');
define('PUBLIC_PATH', BASE_PATH . DIRECTORY_SEPARATOR . PUBLIC_DIR);
define('RESOURCES_DIR', 'resources');

require dirname(__DIR__) . '/vendor/autoload.php';

// Build request and detect flush
$request = \SilverStripe\Control\HTTPRequestBuilder::createFromEnvironment();
// Default application
$kernel = new \LeKoala\MicroFramework\MicroKernel(BASE_PATH);
$app = new \SilverStripe\Control\HTTPApplication($kernel);
$response = $app->handle($request);
$response->output();
```

New base controller
-------------------

[](#new-base-controller)

Please use MicroController as the base controller for your applications. It is recommended to create a base controller (like a PageController) as a base for your application instead of extending MicroController each time.

```
class AppController extends MicroController
{
}
```

### Setting base controller

[](#setting-base-controller)

This is really handy for Security screen.

```
SilverStripe\Security\Security:
  page_class: 'App\AppController'
```

Note: this is working thanks to our custom MicroSecurity extension.

### Auto routing

[](#auto-routing)

If you define `url_segment` on your controllers, the will be added to available routes automatically

```
class HomeController extends AppController
{
    private static $url_segment = 'home';
    private static $is_home = true;
    ...
```

You can also set a `is_home` variable for the default controller. In this case, the default segment /home will redirect to / to avoid duplicated urls.

### Simple action declaration

[](#simple-action-declaration)

If it bothers you to declare two times your action (once as a function, and once as a function), fear not!

You can now simply make sure your first argument accepts an `HTTPRequest` and it will be considered as a valid action.

### Page compat

[](#page-compat)

Most SilverStripe projects have a "Page" template. Even if you are not using Page class, the Page.ss will be seen as the base class.

### Login as admin without db

[](#login-as-admin-without-db)

There are some convenience function allowing you to use the login screen without db

Compatibility
-------------

[](#compatibility)

Tested with 4.6 and higher

Maintainer
----------

[](#maintainer)

LeKoala -

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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://avatars.githubusercontent.com/u/250762?v=4)[Thomas Portelange](/maintainers/lekoala)[@lekoala](https://github.com/lekoala)

---

Top Contributors

[![lekoala](https://avatars.githubusercontent.com/u/250762?v=4)](https://github.com/lekoala "lekoala (14 commits)")

### Embed Badge

![Health badge](/badges/lekoala-silverstripe-micro-framework/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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