afragen / wp-dependency-installer

A lightweight class to add to WordPress plugins/themes to automatically install plugin dependencies.
MIT License
205 stars 32 forks source link

Chainable init #59

Closed Raruto closed 4 years ago

Raruto commented 4 years ago

Since I'm a JS Guy:

WP_Dependency_Installer::instance( __DIR__ )->register( $config )->run();
afragen commented 4 years ago

I'll have to test this. Looks cool and I like it.

Is there a specific PHP version required?

Raruto commented 4 years ago

I'll have to test this. Looks cool and I like it.

In PHP i think it's called fluent interfaces programming. In JS it's widely in use, as it also allows you, for example, to significantly reduce the amount of text sent to the browser.

Is there a specific PHP version required?

I don't know, but I think not.

afragen commented 4 years ago

Looks like it's PHP > 5, so we're good.