2017 © Pedro Peláez
 

library app

Very minimalistic wrapper for a php application.

image

weew/app

Very minimalistic wrapper for a php application.

  • Thursday, July 21, 2016
  • by weew
  • Repository
  • 1 Watchers
  • 0 Stars
  • 172 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 25 Versions
  • 0 % Grown

The README.md

App

Build Status Code Quality Test Coverage Version Licence, (*1)

Table of contents

Installation

composer require weew/app, (*2)

Introduction

This package is meant to be used as a barebone for any php applications. It uses the weew/container package for dependency injection, weew/kernel as a kernel where you can register your providers, the weew/eventer package for event handing and the weew/commander package as the command bus. Configuration is handled by the weew/config package., (*3)

Please read documentation of different components to see how they work., (*4)

Usage

Creating a new app is very simple:, (*5)

$app = new App('environment');

// or

$app = new App();
$app->setEnvironment('environment');

// get depdency injection container
$app->getContainer();

// get kernel
$app->getKernel();

// get event bus
$app->getEventer();

// get command bus
$app->getCommander();

You can provide config sources using the config loader., (*6)

// get config
$app->getConfigLoader()
    ->addPath('/path/to/config')
    ->addRuntimeConfig(['some' => 'value']);

Be aware that applications current environment and debug mode will always be available inside the config object., (*7)

// "dev" by default
$app->getEnvironment();
$app->setEnvironment('test');
// will be set to test
$app->getConfig()->get('env');

// false by default
$app->getDebug();
$app->setDebug(true);
// will be set to true
$app->getConfig()->get('debug');

Be aware that config is only available after the application start., (*8)

Extensions

There are several extensions available:, (*9)

The Versions

04/05 2016

v2.10.0

2.10.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

20/04 2016

v2.9.0

2.9.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

20/04 2016

v2.8.1

2.8.1.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

20/04 2016

v2.8.0

2.8.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

19/04 2016

v2.7.0

2.7.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

19/04 2016

v2.6.0

2.6.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

19/04 2016

v2.5.0

2.5.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

19/04 2016

v2.4.0

2.4.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

18/04 2016

v2.3.0

2.3.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

15/04 2016

v2.2.0

2.2.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

31/03 2016

v2.1.0

2.1.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

31/03 2016

v2.0.1

2.0.1.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

31/03 2016

v2.0.0

2.0.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

31/03 2016

v1.5.0

1.5.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^2.0

 

The Development Requires

by Maxim Kott

03/03 2016

v1.4.0

1.4.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-commander-container-aware ^2.0
  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^1.2

 

The Development Requires

by Maxim Kott

26/01 2016

v1.3.0

1.3.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^1.2

 

The Development Requires

by Maxim Kott

15/01 2016

v1.2.2

1.2.2.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^1.2

 

The Development Requires

by Maxim Kott

15/01 2016

v1.2.1

1.2.1.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^1.2

 

The Development Requires

by Maxim Kott

14/01 2016

v1.2.0

1.2.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^1.2

 

The Development Requires

by Maxim Kott

11/01 2016

v1.1.0

1.1.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-config ^1.1
  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^1.2

 

The Development Requires

by Maxim Kott

11/01 2016

v1.0.2

1.0.2.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^1.2

 

The Development Requires

by Maxim Kott

11/01 2016

v1.0.1

1.0.1.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-kernel-container-aware ^1.2

 

The Development Requires

by Maxim Kott

11/01 2016

v1.0.0

1.0.0.0

Very minimalistic wrapper for a php application.

  Sources   Download

MIT

The Requires

  • weew/php-container ^1.0
  • weew/php-contracts ^1.1
  • weew/php-eventer-container-aware ^2.0
  • weew/php-helpers-array ^1.0
  • weew/php-helpers-string ^1.1
  • weew/php-http ^1.1
  • weew/php-kernel-container-aware ^1.2

 

The Development Requires

by Maxim Kott