PHPackages                             tflori/riki-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. tflori/riki-framework

ActiveLibrary[Framework](/categories/framework)

tflori/riki-framework
=====================

A minimalistic framework to connect different libraries within your application.

v2.x-dev(2w ago)01.6k[1 PRs](https://github.com/tflori/riki-framework/pulls)1MITPHPPHP ^8.2CI passing

Since Jun 23Pushed 2w ago1 watchersCompare

[ Source](https://github.com/tflori/riki-framework)[ Packagist](https://packagist.org/packages/tflori/riki-framework)[ RSS](/packages/tflori-riki-framework/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (6)Versions (18)Used By (1)

ríki
====

[](#ríki)

[![.github/workflows/push.yml](https://github.com/tflori/riki-framework/actions/workflows/push.yml/badge.svg)](https://github.com/tflori/riki-framework/actions/workflows/push.yml)[![Code Coverage](https://camo.githubusercontent.com/5c12292a3c381717e15d5847938816d0ee4aa613403a6c456307769e2dc2b2e6/68747470733a2f2f716c74792e73682f67682f74666c6f72692f70726f6a656374732f72696b692d6672616d65776f726b2f636f7665726167652e737667)](https://qlty.sh/gh/tflori/projects/riki-framework)[![Maintainability](https://camo.githubusercontent.com/fc38b436e1723012ac69b9174f2321ee60761ad60087b966f9c08a49e011dd8d/68747470733a2f2f716c74792e73682f67682f74666c6f72692f70726f6a656374732f72696b692d6672616d65776f726b2f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/tflori/projects/riki-framework)[![Latest Stable Version](https://camo.githubusercontent.com/a7f4ed8dd04fa74f553cbb99d878613b4f2846e4de69b4fd9635a4346ec0f4c8/68747470733a2f2f706f7365722e707567782e6f72672f74666c6f72692f72696b692d6672616d65776f726b2f762f737461626c652e737667)](https://packagist.org/packages/tflori/riki-framework)[![Total Downloads](https://camo.githubusercontent.com/a09ef33af3462f04da886014518da8809968787e0ba10e34034bf3fe75578949/68747470733a2f2f706f7365722e707567782e6f72672f74666c6f72692f72696b692d6672616d65776f726b2f646f776e6c6f6164732e737667)](https://packagist.org/packages/tflori/riki-framework)[![License](https://camo.githubusercontent.com/045aed35fab9a0446e9f577f6a6ceefebfd0fe4a8820dffff0fe537856569e28/68747470733a2f2f706f7365722e707567782e6f72672f74666c6f72692f72696b692d6672616d65776f726b2f6c6963656e73652e737667)](https://packagist.org/packages/tflori/riki-framework)

ríki is a minimalistic framework that focuses on **bootstrapping**, **environment handling** and **configuration loading**. It does not provide controllers, routing, or a fixed application architecture. You bring the structure — ríki keeps the foundation small and explicit.

Install
-------

[](#install)

```
$ composer require tflori/riki-framework
```

Recommended project structure
-----------------------------

[](#recommended-project-structure)

There is no required structure, but the following layout is recommended because it matches how `Riki\Environment`resolves paths by default:

```
your-app/
 bootstrap.php # creates and returns the Application instance
 .env # environment configuration (defaults)
 .env.production # optional, depends on APP_ENV
 config/ # PHP config files returning arrays
 resources/ # templates, translations, assets, ...
 storage/ # cache, logs, runtime files
 public/
  index.php # web entrypoint

```

Bootstrapping (`bootstrap.php`)
-------------------------------

[](#bootstrapping-bootstrapphp)

`bootstrap.php` is intentionally small:

- it loads Composer autoloading
- it creates an `Environment`
- it creates your application and returns it

Example:

```
