Download the PHP package webteractive/filament-browser-timezone without Composer

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

Filament Browser Timezone

A Filament package that automatically detects the user's browser timezone and makes it available to Filament resources, forms, and widgets via session storage.

Features

Installation

The package will be automatically discovered by Laravel.

Usage

Automatic Integration

The package automatically integrates with Filament and starts detecting timezone on every page load. No additional configuration required.

Accessing Browser Timezone

In Filament Resources, Forms, and Widgets

In Filament Tables

In Filament Forms

In Filament Widgets

Configuration

Publish the configuration file:

Configuration Options

Environment Variables

How It Works

  1. Automatic Integration: The package automatically integrates with Filament panels using render hooks
  2. Page Load: When a Filament page loads, the package automatically includes a hidden Livewire component
  3. JavaScript Detection: The component uses JavaScript to detect the browser's timezone using Intl.DateTimeFormat().resolvedOptions().timeZone
  4. Session Storage: The detected timezone is sent to the server via Livewire and stored in the Laravel session
  5. Filament Integration: Your Filament resources, forms, and widgets can now access the timezone using the BrowserTimezone helper class

Filament Features

Browser Compatibility

The package uses the modern Intl.DateTimeFormat API which is supported by:

For unsupported browsers, the package will use the configured fallback timezone.

Version Compatibility

Package Version Filament Version Livewire Version Laravel Version PHP Version
1.x ^3.0||^4.0||^5.0 ^3.0||^4.0 ^10.0||^11.28||^12.0 ^8.2

Note: Filament v3 and v4 use Livewire v3, while Filament v5 uses Livewire v4. This package supports both Livewire versions seamlessly.

Laravel AI Guidelines

This package includes custom AI guidelines for Laravel 12.x AI features. When using AI assistants with Laravel 12.x projects, the assistant will have access to comprehensive documentation about this package's usage patterns, best practices, and troubleshooting tips.

The AI guidelines are located in ai/custom-guidelines.md and provide:

Testing

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-browser-timezone with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-package-tools Version ^1.16
laravel/framework Version ^10.0||^11.28.0||^12.0||^13.0
filament/filament Version ^3.0||^4.0||^5.0
livewire/livewire Version ^3.0||^4.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 webteractive/filament-browser-timezone contains the following files

Loading the files please wait ...