Download the PHP package dreamcraftsu/laravel-friendships without Composer

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

Laravel 5 Friendships

Build Status Code Climate Test Coverage Total Downloads Version

This package gives Eloquent models the ability to manage their friendships. You can easily design a Facebook like Friend System.

Models can:

Installation

First, install the package through Composer.

If you are using Laravel < 5.5, you need to add Hootlex\Friendships\FriendshipsServiceProvider to your config/app.php providers array:

Publish config and migrations

Configure the published config in

Finally, migrate the database

Setup a Model

How to use

Check the Test file to see the package in action

Send a Friend Request

Accept a Friend Request

Deny a Friend Request

Remove Friend

Block a Model

Unblock a Model

Check if Model is Friend with another Model

Check if Model has a pending friend request from another Model

Check if Model has already sent a friend request to another Model

Check if Model has blocked another Model

Check if Model is blocked by another Model

Get a single friendship

Get a list of all Friendships

Get a list of pending Friendships

Get a list of accepted Friendships

Get a list of denied Friendships

Get a list of blocked Friendships

Get a list of pending Friend Requests

Get the number of Friends

Get the number of Pendings

Get the number of mutual Friends with another user

Friends

To get a collection of friend models (ex. User) use the following methods:

Get Friends

Get Friends Paginated

Get Friends of Friends

Collection of Friends in specific group paginated:

Get mutual Friends with another user

Friend groups

The friend groups are defined in the config/friendships.php file. The package comes with a few default groups. To modify them, or add your own, you need to specify a slug and a key.

Since you've configured friend groups, you can group/ungroup friends using the following methods.

Group a Friend

Remove a Friend from family group

Remove a Friend from all groups

Get the number of Friends in specific group

To filter friendships by group you can pass a group slug.

Events

This is the list of the events fired by default for each action

Event name Fired
friendships.sent When a friend request is sent
friendships.accepted When a friend request is accepted
friendships.denied When a friend request is denied
friendships.blocked When a friend is blocked
friendships.unblocked When a friend is unblocked
friendships.cancelled When a friendship is cancelled

Contributing

See the CONTRIBUTING guide.


All versions of laravel-friendships with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
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 dreamcraftsu/laravel-friendships contains the following files

Loading the files please wait ....