2017 © Pedro Peláez
 

library tank

WordPress Container

image

frozzare/tank

WordPress Container

  • Monday, November 6, 2017
  • by fredrikforsmo
  • Repository
  • 1 Watchers
  • 5 Stars
  • 6,445 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

tank

Build Status codecov.io License No Maintenance Intended, (*1)

Requires PHP 5.6, (*2)

WordPress Container., (*3)

Install

composer require frozzare/tank

Container example

use Frozzare\Tank\Container;

class Plugin_Loader extends Container {

  public function __construct() {
    $this->bind( 'number', 12345 );
  }

}

$loader = new Plugin_Loader;

echo $loader->make( 'number' );
// 12345

Check the container source code for methods that can be used., (*4)

Service provider example

use Frozzare\Tank\Container;
use Frozzare\Tank\Service_Provider;

class Example_Provider extends Service_Provider {

  public function register() {
    $this->container->bind( 'say', 'Hello!' );
  }

}

$container = new Container;
$provider  = new Example_Provider( $container );
$provider->register();

echo $container->make( 'say' );
// Hello!

License

MIT © Fredrik Forsmo, (*5)

The Versions

06/11 2017

dev-master

9999999-dev https://github.com/frozzare/wp-tank

WordPress Container

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress utilities

17/10 2017

dev-frozzare-patch-1

dev-frozzare-patch-1 https://github.com/frozzare/wp-tank

WordPress Container

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress utilities

21/02 2017

v1.3.1

1.3.1.0 https://github.com/frozzare/wp-tank

WordPress Container

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress utilities

27/10 2016

v1.3.0

1.3.0.0 https://github.com/frozzare/wp-tank

WordPress Container

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress utilities

04/10 2016

v1.2.0

1.2.0.0 https://github.com/frozzare/wp-tank

WordPress Container

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress utilities

26/08 2015

v1.1.1

1.1.1.0 https://github.com/frozzare/wp-tank

WordPress Container

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress utilities

23/08 2015

v1.1.0

1.1.0.0 https://github.com/frozzare/wp-tank

WordPress Container

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress utilities

10/08 2015

v1.0.0

1.0.0.0 https://github.com/frozzare/tank

WordPress Container

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress utilities