PHPackages                             bun/bun - 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. bun/bun

ActiveLibrary[Framework](/categories/framework)

bun/bun
=======

Light MVC framework with DI architecture

419PHP

Since Apr 6Pushed 12y ago2 watchersCompare

[ Source](https://github.com/jakulov/bun)[ Packagist](https://packagist.org/packages/bun/bun)[ RSS](/packages/bun-bun/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

bun
===

[](#bun)

Bun Framework

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

[](#installation)

Install via composer

```
{
    "require": {
        "bun/bun": "master-dev"
    }
}

```

Creating application
--------------------

[](#creating-application)

First you need to have base directory hierarchy:

```
-- app // web root
-- -- public // web static files
-- -- index.php // application start file
-- src // application sources
-- var // application files, cache, etc (web user needs access to write here)
-- vendor // installed vendors

```

You can use any directory's names. Default names defined as constants in Bun\\Core\\Application class You can redefine any of them in your own application index file. Create your application class:

```
