PHPackages                             kod/bootstrap-slim - 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. kod/bootstrap-slim

ActiveLibrary[Framework](/categories/framework)

kod/bootstrap-slim
==================

Library for bootstrapping a Slim based application.

2.0.0(6y ago)1441MITPHP

Since Dec 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kderyabin/bootstrap-slim)[ Packagist](https://packagist.org/packages/kod/bootstrap-slim)[ RSS](/packages/kod-bootstrap-slim/feed)WikiDiscussions develop Synced 3d ago

READMEChangelogDependencies (8)Versions (5)Used By (1)

Bootstrap SLIM
==============

[](#bootstrap-slim)

This package provides a library for bootstrapping Slim framework 4 application. (Release 1 is for Slim 3)

Purpose
-------

[](#purpose)

- Centralize the application's initialisation
- Reuse existing configuration in unit tests
- Create on the fly new customized configuration for unit tests
- Reduce usage of `require`/`include` statements in favour of `use` statement

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

[](#installation)

Add this package to `require` section of the `composer.json`

```
composer require kod/bootstrap-slim

```

Implementation in 3 steps
-------------------------

[](#implementation-in-3-steps)

### Bootstrap - step 1

[](#bootstrap----step-1)

On `index.php` for handling public requests.

```
