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

ActiveLibrary[Framework](/categories/framework)

webiny/bootstrap
================

Webiny Bootstrap Component

v1.6.1(8y ago)119MITPHPPHP ^7

Since Feb 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Webiny/Bootstrap)[ Packagist](https://packagist.org/packages/webiny/bootstrap)[ Docs](http://www.webiny.com/)[ RSS](/packages/webiny-bootstrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (18)Used By (0)

Bootstrap Component
===================

[](#bootstrap-component)

Bootstrap is the first piece of code your web application runs. It loads all system components, and then runs your application. The component uses MVC application architecture. **Note** that Webiny Framework is not an MVC framework, rather it's a set of modular components that you can use in various different application architectures, for example like HMVC and others.

However, we decided to create this component, so that it helps other developers, that are mostly familiar with MVC, to use Webiny Framework in their projects.

Install the Component
---------------------

[](#install-the-component)

The best way to install the component is using Composer.

```
composer require webiny/bootstrap
```

For additional versions of the package, visit the [Packagist page](https://packagist.org/packages/webiny/rest).

Requirements
------------

[](#requirements)

The component requires that you follow a specific file-folder structure.

A skeleton app can be found here [Bootstrap Skeleton App](http://github.com/Webiny/Bootstrap-SkeletonApp).

A more advanced demo application can be found here [Bootstrap Todo Demo App](https://github.com/Webiny/Tutorial-TodoApp/).

### Application Namespace

[](#application-namespace)

Once you have your structure in place, you need to set your desired application namespace inside the `Config/App.yaml` file.

```
Application:
    Namespace: MySuperApp
```

The `Namespace` defines the class root namespace for your module.

### Modules

[](#modules)

Every module is placed inside the `Modules` folder inside the skeleton app. The module name should be written in CamelCase, e.g. "MySuperAwesomeModule".

```
Modules/
    |- MySuperAwesomeModule/
        |- Controllers/
        |- Views/

```

### Controllers

[](#controllers)

The `Controllers` folder, which is inside your module folder, holds your controller classes. Controller name must also be written in CamelCase. Every controller class must `use` the `Webiny\Component\Bootstrap\ApplicationTraits\AppTrait` trait.

```
