Download the PHP package jobmetric/laravel-like without Composer

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

Contributors Forks Stargazers MIT License LinkedIn

Laravel Reaction

A modern, flexible, and test-covered Laravel package that allows your models to handle reaction functionality (like, dislike, love, etc.). This package provides a clean API for both reactable (e.g., articles, posts) and reactor (e.g., users, devices) models.

๐Ÿ’พ Installation

Install via composer:

Then publish and run the migration:

โœจ Usage

Step 1: Add HasReaction to your model (e.g., Article)

Step 2: Add CanReact to your reactor model (e.g., User)

โœ… Main Features

โž• Add Reaction

๐Ÿ” Toggle Reaction

โŒ Remove Reaction

โŒโŒ Remove All Reactions (by user or device)

โ™ป๏ธ Update Reaction

โ™ป๏ธ Restore Deleted Reaction

๐Ÿ“Š Counting and Summary

Total Reactions

Count by Type

Reaction Summary

๐Ÿ” Querying

Has Reaction?

Get Latest Reactions

Get Specific Reaction

๐Ÿง  Reactor Functions (for User or any model using CanReact)

Check if Reacted

Check Specific Reaction

Get Summary of User Reactions

Get All Reacted Items

Latest Reactions Given

๐Ÿงฑ Reaction Model Columns

Field Description
reactor_type Polymorphic class of reactor (e.g., User)
reactor_id ID of the reactor
reactable_type Polymorphic class of reactable (e.g., Post)
reactable_id ID of the reactable
reaction Reaction type (e.g., like, love, etc.)
ip IP address of reaction
device_id Optional device identifier
source Source (e.g., web, app, api)

๐Ÿงช Events

Event Triggered When
ReactionAddEvent A new reaction is added
ReactionRemovingEvent Before a reaction is removed
ReactionRemovedEvent After a reaction is removed

๐Ÿงผ Pruning Reactions

This package uses SoftDeletes and supports automatic pruning:

You can configure the number of days in your config:

๐Ÿค Contributing

Thank you for considering contributing to the Laravel Reaction! The contribution guide can be found in the CONTRIBUTING.md.

๐Ÿ“„ License

This package is open-sourced under the MIT license.


All versions of laravel-like with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.1
laravel/framework Version >=9.19
jobmetric/laravel-package-core Version ^1.20
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 jobmetric/laravel-like contains the following files

Loading the files please wait ....