PHPackages                             tueena/core - 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. tueena/core

ActiveTueena-framework-package[Framework](/categories/framework)

tueena/core
===========

Core package of the tueena framework: A dependency injection framework combined with an application bootstrapper.

09PHP

Since Oct 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tueena/core)[ Packagist](https://packagist.org/packages/tueena/core)[ RSS](/packages/tueena-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

tueena framework
================

[](#tueena-framework)

The tueena framework is a combination of a **dependency injection framework**, an **application bootstrapper** and a class loader. It does not tell you, how to design your architectore. You can use it to write MVC applications, MVP application, CLI apps with commands, whatever. It is written in **PHP** and licensed under the **MIT license**.

Dependency injection ("DI") helps you to write **loose coupled** code and to write well **testable code**. The tueena framework self is test driven developed and has a code coverage of 100% (what not means, that it is completely tested of course).

I focused on **strong error messages**, because I found bad or missing error messages the biggest problem with other DI frameworks (haven't tried such ones in php yet).

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

[](#installation)

Required is PHP &gt;= 4.3.0.

Download the code, clone the repository or use composer (the package name is `tueena/core`).

How does it work?
-----------------

[](#how-does-it-work)

You write a front controller, that retrieves the application factory. You tell this factory to create an `Application` object. You run the application. To build the application, you have to configure the class loader, you have to define your services (that are all PHP classes, that should be injected later) and you have to define a main function. This looks something like this:

```
