2017 © Pedro Peláez
 

library wp-bridge

WpBridge is a simple bridge to mock all wordpress function.

image

gwa/wp-bridge

WpBridge is a simple bridge to mock all wordpress function.

  • Monday, April 25, 2016
  • by gwa
  • Repository
  • 2 Watchers
  • 1 Stars
  • 6,768 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 19 Versions
  • 20 % Grown

The README.md

WpBridge

Latest Version on Packagist Total Downloads Software License, (*1)

Master

Build Status Coverage Status Quality Score, (*2)

Install

Via Composer, (*3)

``` bash $ composer require gwa/wp-bridge, (*4)


## Usage First init ```WpBridge``` class. ```php $bridge = new \Gwa\Wordpress\WpBridge\WpBridge();

Now it allows us to use a class to call methods in the global namespace. Methods should be called in camelcase., (*5)

``` php // To call wp_get_attachment_image_src(...);, (*6)

// use $bridge->wpGetAttachmentImageSrc(...);, (*7)


Or you like to use a trait, than set ```WpBridgeTrait``` in a class. ```php use Gwa\Wordpress\WpBridge\Traits\WpBridgeTrait; class TestClass { use WpBridgeTrait; public function testFunc() { $img = $this->getWpBridge()->wpGetAttachmentImageSrc(...); ... } } $test = new TestClass(); $test->setWpBridge($bridge);

Change log

Please see CHANGELOG for more information what has changed recently., (*8)

Testing

bash $ composer test, (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

Credits

License

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

The Versions

25/04 2016

dev-master

9999999-dev https://github.com/gwa/WpBridge

WpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery bridge

25/04 2016

v2.1.2

2.1.2.0 https://github.com/gwa/WpBridge

WpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery bridge

25/04 2016

v2.1.1

2.1.1.0 https://github.com/gwa/WpBridge

WpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery bridge

28/01 2016

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/gwa/WpBridge

WpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery bridge

28/01 2016

v2.1.0

2.1.0.0 https://github.com/gwa/WpBridge

WpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery bridge

27/01 2016

v2.0.2

2.0.2.0 https://github.com/gwa/WpBridge

WpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery bridge

27/01 2016

v2.0.1

2.0.1.0 https://github.com/gwa/WpBridge

WpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery bridge

12/01 2016

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/gwa/MockeryWpBridge

MockeryWpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery

12/01 2016

1.2.x-dev

1.2.9999999.9999999-dev https://github.com/gwa/MockeryWpBridge

MockeryWpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery

06/01 2016

v2.0.0

2.0.0.0 https://github.com/gwa/WpBridge

WpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery bridge

17/12 2015

v1.2.1

1.2.1.0 https://github.com/gwa/MockeryWpBridge

MockeryWpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery

01/10 2015

v1.2.0

1.2.0.0 https://github.com/gwa/MockeryWpBridge

MockeryWpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery

30/09 2015

v1.1.3

1.1.3.0 https://github.com/gwa/MockeryWpBridge

MockeryWpBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery

29/07 2015

1.1.2

1.1.2.0 https://github.com/gwa/MockeryWPBridge

MockeryWPBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress mock mockery

28/07 2015

1.1.1

1.1.1.0 https://github.com/gwa/MockeryWPBridge

MockeryWPBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

wordpress mock mockery

28/07 2015

1.1.0

1.1.0.0 https://github.com/gwa/MockeryWPBridge

MockeryWPBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

wordpress mock mockery

28/07 2015

1.0.2

1.0.2.0 https://github.com/gwa/MockeryWPBridge

MockeryWPBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

wordpress mock mockery

25/07 2015

1.0.1

1.0.1.0 https://github.com/gwa/MockeryWPBridge

MockeryWPBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

wordpress mock mockery

24/07 2015

1.0.0

1.0.0.0 https://github.com/gwa/MockeryWPBridge

MockeryWPBridge is a simple bridge to mock all wordpress function.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

wordpress mock mockery