WP Manifestindependent plugin directory
manifest / developer / tinylibraries

TinyLibraries

TinyLibraries is a small attempt to solve lack of library sharing and library dependency capabilities in WordPress.

by Arūnas Liuiza · github.com/ideag/tinylibraries · website

7stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/ideag/tinylibraries/archive/refs/heads/master.zip

From the readme

TinyLibraries TinyLibraries is a small attempt to solve lack of library sharing and library dependency capabilities in WordPress. It allows plugin developers to define what libraries they require for their code to function in plugin headers, like this In this example plugin declares that it requires WP Background Processing library. It will be downloaded and installed when this plugin is activated. Later in the code, plugin developer can requireonce the library via TinyLibraries()-requirelibrary( 'wp-background-processing' ); method. You can see this in work in sample plugins: tinylibraries-sample-a.php, tinylibraries-sample-b.php and tinylibraries-sample-ab.php. They can also provide a fallback to make sure the plugin functions correctly even if TinyLibraries is not present: Currently supported libraries: WP Background Processing by Delicious Brains Inc. - wp-background-processing ButterBean by Justin Tadlock. - butterbean Extended Taxonomies by John Blackbourn. - extended-taxos Extended CPTs by John Blackbourn. - extended-cpts Freemius by Freemius. - freemius

Read the full README on GitHub →