2017 © Pedro Peláez
 

eliasis-component wp-plugin-rating

Show plugin rating in WordPress administration pages for plugins developed with Eliasis Framework.

image

eliasis-framework/wp-plugin-rating

Show plugin rating in WordPress administration pages for plugins developed with Eliasis Framework.

  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

WP Plugin Rating · Eliasis component

Latest Stable Version License, (*1)

Versión en español, (*2)

Show plugin rating in WordPress administration pages for plugins developed with Eliasis Framework., (*3)

This component requires that the page where the action hook will be inserted has been created with WP_Menu., (*4)



, (*5)


Requirements

This component is supported by PHP versions 5.6 or higher and is compatible with HHVM versions 3.0 or higher., (*6)

Installation

The preferred way to install this component is through Composer., (*7)

To install WP Plugin Rating, simply:, (*8)

composer require eliasis-framework/wp-plugin-rating

The previous command will only install the necessary files, if you prefer to download the entire source code you can use:, (*9)

composer require eliasis-framework/wp-plugin-rating --prefer-source

You can also clone the complete repository with Git:, (*10)

git clone https://github.com/eliasis-framework/wp-plugin-rating.git

Available Methods

Available methods in this component:, (*11)

- Show WordPress plugin rating

Hook::doAction('wp-plugin-rating\display', $slug);
Atttribute Description Type Required
$slug WordPress plugin slug. string Yes

@return HTML output., (*12)

Quick Start

To use this component with Composer:, (*13)

use Josantonius\Hook\Hook;

Usage

- Show rating of the Search Inside plugin

Hook::doAction('wp-plugin-rating\display', 'search-inside');

Tests

To run tests you just need composer and to execute the following:, (*14)

git clone https://github.com/eliasis-framework/wp-plugin-rating.git

cd wp-plugin-rating

bash bin/install-wp-tests.sh wordpress_test root '' localhost latest

composer install

Run unit tests with PHPUnit:, (*15)

composer phpunit

Run WordPress code standard tests with PHPCS:, (*16)

composer phpcs

Run PHP Mess Detector tests to detect inconsistencies in code style:, (*17)

composer phpmd

Run all previous tests:, (*18)

composer tests

If this project helps you to reduce your development time, you can sponsor me to support my open source work :blush:, (*19)

License

This repository is licensed under the MIT License., (*20)

Copyright © 2017-2022, Josantonius, (*21)

The Versions