PHP code example of eliasis-framework / wp-plugin-info

1. Go to this page and download the library: Download eliasis-framework/wp-plugin-info library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

eliasis-framework / wp-plugin-info example snippets


get($option, $slug);

use Eliasis\Complement\Type\Plugin;

$wp_plugin_info = Plugin::WP_Plugin_Info()->getControllerInstance('Main');

# [string]

$wp_plugin_info->get('name', 'plugin-slug'); 

# [string]

$wp_plugin_info->get('version', 'plugin-slug');

# [string]

$author = $wp_plugin_info->get('author', 'plugin-slug');

# [string]

$wp_plugin_info->get('author_profile', 'plugin-slug');

# [array]

$wp_plugin_info->get('contributors', 'plugin-slug');

# [string]

$wp_plugin_info->get('

# [string]

$wp_plugin_info->get('tested', 'plugin-slug');

# [array]

$wp_plugin_info->get('compatibility', 'plugin-slug');

# [int]

$wp_plugin_info->get('rating', 'plugin-slug');

# [array]

$wp_plugin_info->get('ratings', 'plugin-slug');

# [int]

$wp_plugin_info->get('num_ratings', 'plugin-slug');

# [int]

$wp_plugin_info->get('support_threads', 'plugin-slug');

# [int]

$wp_plugin_info->get('support_threads_resolved', 'plugin-slug');

# [int]

$wp_plugin_info->get('downloaded', 'plugin-slug');

# [string]

$wp_plugin_info->get('last_updated', 'plugin-slug');

# [string]

$wp_plugin_info->get('added', 'plugin-slug');

# [string]

$wp_plugin_info->get('homepage', 'plugin-slug');

# [string]

$wp_plugin_info->get('download_link', 'plugin-slug');

# [array]

$wp_plugin_info->get('tags', 'plugin-slug');

# [string]

$wp_plugin_info->get('donate_link', 'plugin-slug');