Download the PHP package nelkasovic/laravel-rating without Composer

On this page you can find all versions of the php package nelkasovic/laravel-rating. 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 laravel-rating

               

New Maintainer

This package now maintined by Ahmed Nagi

Laravel-Ratings

Laravel package that allows you to rate, like & dislike or vote up & down your models with a simple and clear way.
If you see this packge can help, Don't skimp on me with a star :)

Rating

include CanRate trait into your user model to apply rating functions

include Rateable trait to your model that will be rateable

now you can rate your models as the following:

also you can unrate your models as the following:

get the average ratings of a model

get the total count of ratings of a model

get the rated models by a user

Voting

include CanVote trait into your user model to apply rating functionalties

include Votable trait to your model that will be votable

now you can vote your model as the following:

get total votes count

get total up votes count

get total down votes count

get the up voted models by a user

get the down voted models by a user

get the total voted models by a user

Like & Dislike

include CanLike trait into your user model to apply like and dislike functionalties

include Likeable trait to your model that will be likeable

now you can like your model as the following:

get total likes count

get total dislikes count

get total likes and dislikes count

get the liked models by a user

get the disliked models by a user

get the total liked and disliked models by a user

Install

for laravel 8. , 7. , 6.*

for laravel 5.*

in your config/app.php

You don't need this step in laravel5.5 package:discover will do the job :)

publish the migrations

run the migrations


All versions of laravel-rating with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 nelkasovic/laravel-rating contains the following files

Loading the files please wait ....