Download the PHP package hypejunction/elgg_stars without Composer

On this page you can find all versions of the php package hypejunction/elgg_stars. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package elgg_stars

Elgg Stars

Star rating for Elgg

Usage

Adding a rating form

  1. First, either define your rating criteria using the plugin setting, or by calling for each rating criteria you are intending to use.

  2. Add a form to rate an existing entity:

This will display a form with 2 star rating modules. User input will be processed in real time. No need for any further coding on your side.

Adding a static star input to a form

To add a star input to your form, simple call:

In your action, you would then use standard Elgg API:

See for a list of additional parameters, including minimum and maximum values;

Getting rating values

To get a value for a single or multiple criteria, you can call

You can leave the second parameter empty, to get a total value for all registered rating criteria.

Note that this function will return an associative array, where: is an actual average value of all ratings. Ratings are not weighed, so if you are planning to use multiple rating scales, you need to add your own weighing algorithms.

Displaying star ratings without user input

To display any value on a star rating scale:

You can also specify, 'min', 'max', and 'step' parameters to configure the scale.

Credits / Acknowledgements

RateIt - a jQuery star rating plugin http://rateit.codeplex.com/

Fast, Progressive enhancement, touch support, customizable (just swap out the images, or change some CSS), Unobtrusive JavaScript (using HTML5 data-* attributes), RTL support, ARIA & keyboard support. Use as many stars as you'd like, and also any step size.

Notes


All versions of elgg_stars with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
composer/installers Version 1.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hypejunction/elgg_stars contains the following files

Loading the files please wait ....