2017 © Pedro Peláez
 

library widgets

Widgets package

image

humweb/widgets

Widgets package

  • Friday, July 17, 2015
  • by ryun
  • Repository
  • 2 Watchers
  • 0 Stars
  • 9,645 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

Widgets

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight Total Downloads Latest Version on Packagist Software License, (*1)

Install

Via Composer, (*2)

``` bash $ composer require humweb/widgets, (*3)


## Usage **Register anonymous function handler** ``` php $widgets = new WidgetFactory(); $widgets->register('foo', function($val = '') { return 'bar'.$val; }); echo $widgets->foo('baz');

Register class handler ``` php $widgets = new WidgetFactory();, (*4)

$widgets->register('foo', 'Humweb\Widgets\Tests\Fake\FooWidget@render'); // or // $widgets->register('foo', 'Humweb\Widgets\Tests\Fake\FooWidget');, (*5)

// Check for registered widget $this->widgets->has('foo');, (*6)

// Renders echo $this->widgets->foo();, (*7)



## Change log Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING for details., (*8)

Security

If you discover any security related issues, please email ryun@humboldtweb.com instead of using the issue tracker., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

17/07 2015

dev-master

9999999-dev https://github.com/humweb/widgets

Widgets package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

widgets humweb

17/07 2015

1.0

1.0.0.0 https://github.com/humweb/widgets

Widgets package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

widgets humweb

17/07 2015

1.0.1

1.0.1.0 https://github.com/humweb/widgets

Widgets package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

widgets humweb

28/06 2015

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1 https://github.com/humweb/widgets

Widgets package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

widgets humweb