Download the PHP package fuelviews/app-wrapper without Composer
On this page you can find all versions of the php package fuelviews/app-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fuelviews/app-wrapper
More information about fuelviews/app-wrapper
Files in fuelviews/app-wrapper
Package app-wrapper
Short Description Sabhero blog package
License MIT
Homepage https://github.com/fuelviews/laravel-sabhero-wrapper
Informations about the package app-wrapper
Laravel SAB Hero Wrapper
A comprehensive Laravel package that provides a unified wrapper layout for integrating multiple Fuelviews components and third-party packages. This package serves as the foundation for building consistent, feature-rich web applications with integrated navigation, forms, SEO optimization, analytics, and more.
Requirements
- PHP 8.3+
- Laravel 10.0+, 11.0+, or 12.0+
- Livewire 3.5+
Installation
Install the package via Composer:
Quick Installation
The package will automatically register via Laravel's package discovery. To publish the configuration and migrations:
Additional Publishing Options
You can publish additional components as needed:
Basic Usage
Using the Layout Component
The primary way to use this package is through the layout component:
Page Model Integration
The package includes a Page
model for managing SEO data:
Configuration
The package configuration file provides granular control over included features:
Environment Variables
Add these variables to your .env
file to control features:
Integrated Packages
The wrapper conditionally integrates with the following packages:
Navigation (fuelviews/laravel-navigation)
When installed and enabled, provides:
- Responsive navigation header
- Footer component
- Mobile-friendly hamburger menu
Forms (fuelviews/laravel-forms)
When installed and enabled, provides:
- Modal-based contact forms
- Lead capture functionality
- UTM parameter tracking
SEO (ralphjsmit/laravel-seo)
When installed, provides:
- Dynamic meta tags
- Open Graph integration
- Twitter Card support
- JSON-LD structured data
Media Library (spatie/laravel-medialibrary)
Integrated for:
- Feature image management
- Responsive image conversions
- Media collection organization
Google Fonts (spatie/laravel-google-fonts)
When installed:
- Automatic font optimization
- GDPR-compliant font loading
Advanced Usage
Using the Facade
Access package functionality programmatically:
Custom View Composer
The package automatically provides SEO page data to views through a view composer that matches route names to page slugs:
Service Provider Customization
For advanced customization, you can publish the service provider:
This creates app/Providers/SabHeroWrapperServiceProvider.php
where you can:
- Customize view composers and SEO data logic
- Add custom service bindings
- Register additional event listeners
- Publish custom assets
- Override package behavior
After publishing, remember to register it in config/app.php
:
Database Seeding
Run the included seeder to create sample pages:
This creates a sample home page with:
- Title: "Title one"
- Slug: "home"
- Description: "Description here."
- Feature image from Unsplash
Media Collections
The Page model supports media collections for feature images:
Tailwind CSS Integration
Add the package views to your Tailwind CSS content configuration:
Testing
Run the package tests:
Run code style checks:
Troubleshooting
Navigation Not Showing
Ensure the fuelviews/laravel-navigation
package is installed and the feature is enabled:
Forms Modal Not Working
Ensure the fuelviews/laravel-forms
package is installed and Livewire is enabled:
SEO Tags Not Appearing
Ensure the ralphjsmit/laravel-seo
package is installed:
Google Fonts Not Loading
Install the required package:
Media Library Issues
Ensure the Spatie Media Library is properly configured:
Package Dependencies
This package integrates with several optional packages:
Required:
php: ^8.3
illuminate/contracts: ^10.0||^11.0||^12.0
livewire/livewire: >=3.5
ralphjsmit/laravel-seo: >=1.6.7
spatie/laravel-google-fonts: >=1.4.1
spatie/laravel-medialibrary: ^11||^10
spatie/laravel-package-tools: ^1.92
Optional Integrations:
fuelviews/laravel-navigation
- For header/footer navigationfuelviews/laravel-forms
- For contact forms and modalsspatie/laravel-googletagmanager
- For Google Tag Manager integration
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Thejmitchener
- Sweatybreeze
- Fuelviews
- All Contributors
📜 License
The MIT License (MIT). Please see License File for more information.
Built with ❤️ by the Fuelviews team
All versions of app-wrapper with dependencies
illuminate/contracts Version ^10.0||^11.0||^12.0
livewire/livewire Version >=3.5
ralphjsmit/laravel-seo Version >=1.6.7
spatie/laravel-google-fonts Version >=1.4.1
spatie/laravel-medialibrary Version ^11||^10
spatie/laravel-package-tools Version ^1.92