Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Pwa Laravel Package

alareqi/filament-pwa

View on GitHub
Deep Wiki
Context7
1.0.1

Added

Filament v4 Compatibility

  • Filament v4 Support - Full compatibility with Filament v4.x while maintaining backward compatibility with v3.x
  • Updated Dependencies - Updated composer.json to support both Filament v3 and v4 (^3.0|^4.0)
  • PHP 8.2 Requirement - Updated minimum PHP requirement to 8.2 to align with Filament v4 requirements
  • Render Hook Compatibility - Verified and tested render hooks work correctly with both Filament v3 and v4
  • Theme Color Detection - Confirmed theme color detection works with both Filament versions
  • Plugin Registration - Tested plugin registration process with both Filament v3 and v4 panels

Tailwind CSS v4 Compatibility

  • PWA Banner Styling Fix - Fixed PWA installation banner styling to be compatible with Tailwind CSS v4
  • Removed @apply Dependencies - Replaced Tailwind @apply directives with vanilla CSS for better compatibility
  • Enhanced Visual Design - Improved banner animations, shadows, and hover effects
  • Responsive Design Updates - Enhanced mobile responsiveness with better touch targets
  • RTL/LTR Support - Maintained full RTL/LTR support with vanilla CSS implementation

Enhanced Color Detection System

  • Runtime Color Detection - Improved color detection to work at runtime instead of boot time
  • Current Panel Context - Colors are now detected from the active panel context
  • Multi-format Support - Enhanced support for various Filament color formats (hex, RGB, arrays, objects)
  • Filament v4 Color Objects - Added support for Filament v4's new Color class objects
  • Fallback Mechanisms - Improved fallback color detection with multiple detection methods
  • Debug Capabilities - Enhanced debug information for troubleshooting color detection issues

Documentation Updates

  • Updated Requirements Section - Added comprehensive requirements section with PHP, Laravel, and Filament version requirements
  • Filament v4 Installation Notes - Added notes about v4 compatibility in installation instructions
  • Browser Support Documentation - Enhanced browser support information
  • Production Requirements - Detailed HTTPS and SSL certificate requirements

Fixed

  • PWA Validation Command - Fixed validation command showing false "Manifest file not found" and "Service worker not found" errors
  • Route-based Asset Serving - Updated validation logic to check for route registration instead of physical files
  • Tailwind CSS v4 Compatibility - Fixed broken PWA banner styling in Filament v4 environments
  • Banner Animation Issues - Resolved animation and positioning problems with the installation banner
  • Mobile Responsiveness - Fixed banner layout issues on mobile devices
  • Automatic Color Detection - Fixed theme color detection not working properly with Filament panel configurations
  • Color Format Compatibility - Resolved issues with various Filament color formats not being recognized
  • Panel Context Detection - Fixed current panel detection for accurate color extraction

Changed

  • Minimum PHP Version - Updated from PHP 8.1 to PHP 8.2 to support Filament v4
  • Package Description - Updated to reflect support for both Filament v3 and v4
  • Documentation - Updated all references to mention both Filament v3 and v4 support
  • CSS Implementation - Migrated from Tailwind @apply directives to vanilla CSS for better compatibility

Technical Details

  • Backward Compatibility - Maintains full backward compatibility with Filament v3.x
  • Forward Compatibility - Full support for Filament v4.x features and improvements
  • Testing - Verified all functionality works correctly with both versions
  • Dependencies - Updated dependency constraints to support both major versions

1.0.0

Added

  • Initial release of Filament PWA Plugin
  • Complete PWA implementation for Filament v3 admin panels
  • Automatic icon generation from SVG or raster images
  • Service worker with intelligent caching strategies
  • Installation prompts with iOS-specific instructions
  • Offline functionality with custom offline page
  • Comprehensive configuration system
  • RTL language support
  • PWA validation and testing commands
  • Extensive documentation and guides
  • Full test coverage
  • Support for maskable icons
  • Browser configuration for Microsoft tiles
  • Push notification support (foundation)
  • Background sync capabilities
  • Custom shortcuts and categories
  • Screenshots for enhanced installation
  • Multiple image processing library support (ImageMagick, Intervention Image, GD)
  • Filament panel integration via render hooks
  • Publishable views and assets for customization
  • Translation support with multiple languages
  • Command-line tools for setup and validation

Features

  • Complete PWA Compliance: Meets all PWA requirements for installation and offline functionality
  • Smart Icon Generation: Automatically generates all required icon sizes from a single source
  • Intelligent Caching: Network-first, cache-first, and stale-while-revalidate strategies
  • Installation Experience: Native-like installation prompts with platform-specific instructions
  • Offline Support: Comprehensive offline functionality with custom fallback pages
  • Developer Experience: Easy setup, extensive configuration, and powerful CLI tools
  • Internationalization: Full RTL support and translation system
  • Testing: Complete test suite with unit and feature tests
  • Documentation: Comprehensive guides for installation, configuration, and customization

Technical Details

  • Requires PHP 8.1+, Laravel 10+, Filament 3+
  • Uses Spatie Laravel Package Tools for structure
  • Supports multiple image processing libraries
  • Implements PWA best practices and standards
  • Follows Laravel package development conventions
  • Includes GitHub Actions workflows (planned)
  • Comprehensive error handling and validation

Configuration Options

  • App name, short name, and description
  • Theme and background colors
  • Display mode and orientation
  • Start URL and scope
  • Language and text direction
  • Installation prompt settings
  • Service worker configuration
  • Icon generation settings
  • Cache strategies and patterns
  • Shortcuts and categories
  • Screenshots and related apps

Commands

  • filament-pwa:setup - Main setup and status command
  • --publish-assets - Publish configuration, views, and assets
  • --generate-icons - Generate all PWA icons from source image
  • --validate - Validate PWA setup and requirements
  • --source - Specify source image for icon generation

Routes

  • /manifest.json - PWA manifest file
  • /sw.js - Service worker script
  • /browserconfig.xml - Microsoft browser configuration
  • /offline - Offline fallback page

Views

  • meta-tags.blade.php - PWA meta tags and styles
  • installation-script.blade.php - Installation and service worker logic
  • service-worker.blade.php - Service worker template
  • browserconfig.blade.php - Browser configuration XML
  • offline.blade.php - Offline page template

Translations

  • English (en) - Complete translation set
  • Arabic (ar) - Planned for future release
  • French (fr) - Planned for future release
  • Spanish (es) - Planned for future release
Security

Please see SECURITY.md for details on reporting security vulnerabilities.

Planned

1.1.0

  • Push notification management interface
  • Advanced background sync with queue integration
  • PWA analytics and metrics
  • Enhanced iOS splash screen generation
  • Web Share API integration
  • Badging API support

1.2.0

  • Multi-panel support
  • Theme-based icon generation
  • Advanced caching strategies
  • Performance monitoring
  • A/B testing for installation prompts
  • Enhanced offline capabilities

1.3.0

  • PWA store integration
  • Advanced manifest customization
  • Custom service worker strategies
  • Enhanced testing tools
  • Performance optimization
  • Security enhancements
License

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

Credits
Contributing

Please see CONTRIBUTING.md for details on how to contribute to this project.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope