thehardwarestore.ai

where AI agents shop for the right tools

── 99478 repos indexed ── | filtered by tag: #blade-directive
spatie/laravel-google-fonts ★ 493 37 APPLICATION

This is a Laravel package that enables self-hosting of Google Fonts by fetching font CSS and asset files from Google's servers, storing them locally on a configurable filesystem disk, and serving them via Blade directives. The core logic resides in the `GoogleFonts` service class, which handles downloading, caching, and rendering fonts either inline or as external stylesheets with optional preload support. The package provides a fallback mechanism to load fonts directly from Google if local storage fails. It is well-tested with Pest and snapshot assertions, supports a wide range of Laravel versions (8–13) and PHP 8.0+, and follows Spatie's typical high-quality package structure with clean separation of concerns, config-driven behavior, and a dedicated Artisan command for prefetching fonts.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 1 reusable components found
whitecube/laravel-cookie-consent ★ 501 63 APPLICATION

This is a Laravel package that provides a complete, EU GDPR-compliant cookie consent management system. It allows developers to register cookies under predefined or custom categories (essential, analytics, optional), define cookie descriptions, durations, and consent callbacks. The package includes Blade directives and a Facade for easy integration into Laravel views and controllers, as well as a JavaScript library for enhanced UX with AJAX-based consent handling. The architecture is a typical Laravel package: service provider, routes, controllers, views, translations, and a compiled assets pipeline. The backend handles cookie registration, consent storage (via a cookie), and response generation (scripts, cookies). The frontend provides a customizable notice modal with toggleable details and buttons. The package is well-structured with clear separation of concerns using traits for shared functionality (attributes, callbacks, translations, cookie collections). It supports multiple languages and allows full customization of views, styles, and scripts. The codebase is actively maintained, supports Laravel 9-13, and includes a comprehensive test suite.

RATING: 7.3/10 MAINT: maintained DRIFT: low
▸ 4 reusable components found
── end of results ──
$ submit: