PHPackages                             assetflow/asset-flow-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. assetflow/asset-flow-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

assetflow/asset-flow-laravel
============================

A comprehensive Laravel package for managing UI framework assets with support for multiple adapters, caching, minification, and advanced production optimization features.

00PHP

Since Jan 5Pushed 4mo agoCompare

[ Source](https://github.com/kazashim/assetflow-laravel)[ Packagist](https://packagist.org/packages/assetflow/asset-flow-laravel)[ RSS](/packages/assetflow-asset-flow-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AssetFlow for Laravel
=====================

[](#assetflow-for-laravel)

AssetFlow for Laravel is a comprehensive package for managing UI framework assets with support for multiple adapters, caching, minification, and advanced production optimization features. It provides a clean, extensible architecture that allows Laravel developers to easily switch between different UI frameworks while maintaining consistent asset management practices across their applications.

This package is a Laravel port of the popular AssetFlow library originally created for CodeIgniter 4. It includes all the same features adapted for Laravel's ecosystem, including support for Laravel's caching system, facades, Blade directives, and service providers.

AssetFlow for Laravel was authored by Kazashim Kuzasuwat, a software developer passionate about creating clean, maintainable code solutions for common web development challenges. For questions, suggestions, or contributions, please contact the author at .

---

1. Installation
---------------

[](#1-installation)

### Prerequisites

[](#prerequisites)

Before installing AssetFlow for Laravel, ensure your development environment meets the following requirements. Laravel 10.0 or higher is required, as the package leverages modern features of the framework including the service container, configuration system, and Blade templating engine. PHP 8.1 or higher is recommended for optimal performance, though the package maintains compatibility with PHP 8.0 for projects that have not yet upgraded.

Your project should have Composer installed for dependency management, as AssetFlow follows modern PHP packaging practices. The package requires the illuminate/support, illuminate/cache, illuminate/config, and illuminate/view packages, which are automatically installed as dependencies when you add AssetFlow to your project through Composer.

### Installing via Composer

[](#installing-via-composer)

The recommended method for installing AssetFlow for Laravel is through Composer, which handles autoloading and dependency management automatically. Open your terminal or command prompt, navigate to your Laravel project directory, and execute the following command to add AssetFlow to your project's dependencies.

```
composer require assetflow/asset-flow-laravel
```

If you want to include the optional dependencies for enhanced functionality, install the package with its suggested dependencies. This provides access to advanced features that may require additional external libraries for optimal performance.

```
composer require assetflow/asset-flow-laravel --with-dependencies
```

After installation, AssetFlow will be automatically registered with your Laravel application through the package's service provider. The package will also register the AssetFlow facade, making it available throughout your application without requiring manual configuration.

### Publishing the Configuration

[](#publishing-the-configuration)

After installation, publish the AssetFlow configuration file to your Laravel application's config directory. This allows you to customize the package behavior according to your project's requirements. Run the following Artisan command to publish the configuration.

```
php artisan vendor:publish --tag=assetflow-config
```

This command creates a new configuration file at config/assetflow.php in your Laravel application. You can modify this file to change default settings, configure adapters, enable or disable features, and customize theme variables.

---

2. Configuration
----------------

[](#2-configuration)

### Basic Configuration

[](#basic-configuration)

The AssetFlow package is configured through the config/assetflow.php file, which provides sensible defaults while allowing customization for specific project requirements. The configuration file uses Laravel's configuration system, which supports environment variable overrides and cached configuration for optimal performance in production environments.

The following example demonstrates a basic configuration setup for a production environment that uses CDN resources with aggressive caching and optimization features enabled. Review each configuration section to understand the available options and their effects on package behavior.

```
