diff --git a/src/Plugin/README.md b/src/Plugin/README.md index 32acf51..14e20d1 100644 --- a/src/Plugin/README.md +++ b/src/Plugin/README.md @@ -1,6 +1,6 @@ # RRZE\WP\Plugin -This PHP library is designed to simplify the management of WordPress plugin files and directories. It provides methods for retrieving information about the plugin, such as its file path, basename, directory, URL, version, and slug. +This PHP library is designed to simplify the management of WordPress plugin files and directories. It provides methods for retrieving information about the plugin, such as its file path, basename, directory, URL, slug, name, version, required WP version and required PHP version. ## Usage @@ -21,7 +21,10 @@ $basename = $plugin->getBasename(); $directory = $plugin->getDirectory(); $url = $plugin->getUrl(); $slug = $plugin->getSlug(); +$name = $plugin->getName(); $version = $plugin->getVersion(); +$requires_wp = $plugin->getRequiresWP(); +$requires_php = $plugin->getRequiresPHP(); ``` ## Methods @@ -32,4 +35,7 @@ $version = $plugin->getVersion(); - `getPath(string $path)`: Get the filesystem directory path for a specific file or directory within the plugin. - `getUrl(string $path)`: Get the URL directory path for a specific file or directory within the plugin. - `getSlug()`: Get the slug of the plugin. +- `getName()`: Get the name of the plugin. - `getVersion()`: Get the version of the plugin. +- `getRequiresWP()`: Get the required WordPress version of the plugin. +- `getRequiresPHP()`: Get the required PHP version of the plugin.