Download the PHP package discoverydesign/filament-gaze without Composer

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

Filament Gaze

👀 See who's viewing a resource in Filament PHP 🔭

Marketing Banner

Packagist Version Total Downloads

Demo

Gaze Demo Video

This package allows you to display when other users are viewing the same resource in Filament PHP.

https://packagist.org/packages/discoverydesign/filament-gaze

Features

How to use

  1. Install the package using composer require discoverydesign/filament-gaze
  2. Add \DiscoveryDesign\FilamentGaze\FilamentGazePlugin::make() to your Filament Panel provider.

  3. Publish the assets with php artisan filament:assets.
  4. Import the package inside your Filament Resource with use DiscoveryDesign\FilamentGaze\Forms\Components\GazeBanner.
  5. Add the GazeBanner form component to your form with GazeBanner::make().
  6. If required, publish the translation files with php artisan vendor:publish --tag=filament-gaze-translations.

Examples

Basic Example

Poll Timer Example

Identifier Example

Lock Example

Lock With Control Example

Hiding Gaze Banner on Create Form Example

There is also a helper function

Docs

->pollTimer($timeInSecs)

Description

polltimer can be used to set how often the browser should inform Filament that the user is still viewing the page, along with getting an updated list of other users also viewing. It is advised not to put this value too short, as it can cause rate limiting issues. But also not to have this value too long, as it will result in a delayed update of new users viewing the page.

Arguments

timeInSeconds - (int) The amount of time in seconds between each poll. Default is 30 seconds.

->identifier($fnc)

Description

identifier is used as a unique identifier for this gaze banner. Any other gaze banners with the same identifier will share the same list of active users. This can be useful if you want 2 or more difference resources to share the same list of active viewing users.

Arguments

fnc - (optional, closure | string) The name of the identifier. Default is the resource's model class combines with model Id.

->lock($fnc)

Description

lock can be used to lock the resource for anyone but the current person editing the form. This can be useful if you want to prevent multiple people from editing the same resource at the same time. The designated controller is the first person to access the resource, or the person who has taken control of the resource. If you enable this after recently accessing a resource, you may need to run php artisan cache:clear as it is possible that the current cached viewers don't have a marked controller (This is only an issue for development).

Arguments

fnc - (optional, closure | bool) If the resource is lockable or not.

->canTakeControl($fnc)

Description

canTakeControl can be used to allow the user to take control of the resource if it is locked by someone else. This can be useful if you want to allow the user to take control of the resource.

Arguments

fnc - (optional, closure | bool) If the user can take control of the resource. Default is true. If a closure is passed, it should return a bool.

->hideOnCreate()

Description

hideOnCreate is a helper function that can be used to hide the banner on create forms.

Customization

Change icons

To customize the icons in the banner, you may use the following aliases:

Author

🚀 Discovery Design


All versions of filament-gaze with dependencies

PHP Build Version
Package Version
Requires filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.15.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 discoverydesign/filament-gaze contains the following files

Loading the files please wait ....