Download the PHP package fadlee/filament-qrcode-field without Composer

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

Filament QR Code Field

A custom form field component for Filament PHP that adds QR code scanning capabilities to your forms. This package provides a text input field with an integrated QR code scanner using the device's camera.

Features

Requirements

Installation

You can install the package via composer:

After installation, you need to publish the package assets:

The package will automatically register its service provider.

Usage

  1. Import the QrCodeInput component in your Filament resource or form:

  2. Add the field to your form:

  3. Using multiple QR code inputs:

  4. Using in Filament action modals:

How it Works

The package adds QR code scanning capability to a text input field. When the input field is clicked, it opens a modal with camera access to scan QR codes. Once a QR code is successfully scanned, the value is automatically populated into the input field.

Security

Technical Implementation

The QR code scanner is seamlessly integrated into Filament through several key mechanisms:

  1. Modal Injection: The package automatically injects the QR code scanner modal markup at the end of each Filament page using Filament's render hooks system.

  2. JavaScript Integration: The package includes a custom JavaScript component that handles the camera access and QR code scanning.

  3. Event Handling: The package uses event delegation to handle QR code scanning requests. When a QR code input field is clicked, the scanner modal is automatically opened and the camera is activated.

  4. Camera Access: The package uses the browser's getUserMedia API to request camera access. Due to browser security policies, HTTPS is required for camera access to work. The camera is automatically selected as the rear camera if available, and the user is prompted to grant camera access.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Credits

This package was inspired by and contains code adapted from the barcode-field package by Design-The-Box. We appreciate their contribution to the Filament ecosystem.

License

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


All versions of filament-qrcode-field with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
filament/filament Version ^3.0
filament/forms Version ^3.0
filament/tables Version ^3.0
spatie/laravel-package-tools Version ^1.14.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 fadlee/filament-qrcode-field contains the following files

Loading the files please wait ....