Download the PHP package cleaniquecoders/inviteable without Composer

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

Build Status Latest Stable Version Total Downloads License

About Your Package

Inviteable, inspired from Laravel Auth Invitations, but in this package, not for Auth, but for anything. Yes, we mean anything! Invitation to group, to class room, to meeting. Can be anything!

Installation

  1. In order to install cleaniquecoders/inviteable in your Laravel project, just run the composer require command from your terminal:

  2. Then in your config/app.php add the following to the providers array:

  3. Run the migration file:

Usage

Inviteable provide a trait \CleaniqueCoders\Inviteable\Traits\HasInviteable.

Following are the sample usage.

Setup

Creating Invitation

Once you have create the invitation, you may use the invitation with events and notifications.

Will add dispatching event on invitation created, so you can extend the use of the invitation to something else like notification.

More sample usage using routes/console.php:

Event and Listener

  1. On Invitation Created - \CleaniqueCoders\Inviteable\Events\InvitationAccepted
  2. On Invitation Accepted - \CleaniqueCoders\Inviteable\Events\InvitationAlreadyAccepted
  3. On Invitation Already Accepted - \CleaniqueCoders\Inviteable\Events\InvitationCreated

Added Listener to send out e-mail invitation:

  1. CleaniqueCoders\Inviteable\Listeners\Invitations - You need to configure in your app/Providers/EventServiceProvider to have this in your app.

Middleware

Added Middleware to be use to check only active invite able to get through

Configuration

Added config/inviteable.php to handle redirection - using route name:

Route

Default route php artisan route:list --name=invitation consist of

  1. Activation invitation - on success, you will redirect to inviteable.redirect.accepted_token route. You may overwrite this. In this route also handle already accepted invitation. Do specify inviteable.redirect.already_accepted_token route name to redirect to other page.
  2. Access denied route - You can change the redirect by specify route name in config.redirect.middleware

Views

Run php artisan vendor:publish --tag=inviteable to publish configuration and views for Inviteable.

Test

To run the test, type vendor/bin/phpunit in your terminal.

To have codes coverage, please ensure to install PHP XDebug then run the following command:

Contributions

Everyone are welcome to contribute to this package. However, it's a good practice to provide:

  1. The problem you solved
  2. Provide test
  3. Documentation

Without these 3, you may add extra work for the maintainer.

License

This package is open-sourced software licensed under the MIT license.


All versions of inviteable with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
cleaniquecoders/blueprint-macro Version ^1.0|^2.0|^3.0|4.0
illuminate/support Version ^5.5|^5.6|^5.7|^6.0|^7.0|^8.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 cleaniquecoders/inviteable contains the following files

Loading the files please wait ....