PHPackages                             mpoiriert/nucleus - 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. mpoiriert/nucleus

ActiveLibrary[Framework](/categories/framework)

mpoiriert/nucleus
=================

Reusable library

0.1.x-dev(11y ago)31.5k1MITPHPPHP &gt;=5.3

Since Oct 13Pushed 11y ago5 watchersCompare

[ Source](https://github.com/mpoiriert/nucleus)[ Packagist](https://packagist.org/packages/mpoiriert/nucleus)[ RSS](/packages/mpoiriert-nucleus/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (25)Versions (2)Used By (0)

Nucleus
=======

[](#nucleus)

Small learning curve PHP framework for professional application development.

[![Build Status](https://camo.githubusercontent.com/ca799a8dac44cb87248da32d6bac9f17cb35fffdb38a9af8ce6afa215fa7ef81/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d706f6972696572742f6e75636c6575732e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/mpoiriert/nucleus)

Nucleus wants to be a independant standalone framework, but also, with the help of an adapter, be used in any other PHP framework. Using dependency injection, it mainly uses a json configuration file for its initialization (by default nucleus.json). So any project base on nucleus should have a nucleus.json file at it's root.

nucleus.json
------------

[](#nucleusjson)

Whitin the file you will find the configuration for any services and also a imports section if you need to import other file. The concept is base on the configuration system of the Symfony project. The main difference is that the system only supports json files and rely mainly on annotations for all the other "configuration".

Here is a exemple of a configuration file:

```
{
    "imports": [
        "/src/Nucleus/Framework/nucleus.json",
        "/src/Nucleus/Dashboard/nucleus.json"
    ],
     "services": {
        "customService": {
            "class": "My\\Namespace\\CustomService"
        },
        "assetManager": {
            "configuration": {
                "rootDirectory": "
