Download the PHP package banklansteve/social-interactions without Composer

On this page you can find all versions of the php package banklansteve/social-interactions. 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 social-interactions

Laravel Social Interactions Package

This Laravel package provides functionalities for liking, favoriting, and following/unfollowing users and content. It is designed to be used in social media-like applications where users can engage with posts, comments, and other users.

Features

Installation

You can install this package via Composer.

Service Provider (Optional)

If you're using a version of Laravel earlier than 5.5 (which doesn't support package auto-discovery), you'll need to add the service provider manually to the config/app.php file.

Publish the Configuration (Optional)

If you want to customize the default configuration, you can publish the package's config file:

Usage Examples

This section should guide users on how to use your package. Since your package allows liking, favoriting, and following/unfollowing, add examples for each.

Usage

Liking Content

To use the Likeable functionality, add the Likeable trait to the model you want to make "likeable" (e.g., Post, Comment, etc.).

To like a post

To check if a user has liked a post

To remove a like

Favouriting a content/user

To enable users to favorite content, add the Favoritable trait to the model you want to make "favoritable" (e.g., Post, Comment, etc.).

Then to favourite a post/content/user;

To check if a post/content is favourited by a user

To remove a favourite

Following Users

To enable users to follow and unfollow other users, add the Followable trait to the User model.

To follow another user

To unfollow a user

To check if the authenticated user is following another user

Changelog

v1.0.0 - Initial release with like, favorite, and follow/unfollow functionalities.

Contributing

If you'd like to contribute to this package, feel free to fork the repository and submit a pull request. Please make sure your contributions follow the code style guidelines, and add tests for any new features or bug fixes.

Support

For any issues or questions, please open an issue in the GitHub repository. Thank you.


All versions of social-interactions with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version ^9.0
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 banklansteve/social-interactions contains the following files

Loading the files please wait ...