PHPackages                             artisanpack-ui/core - 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. artisanpack-ui/core

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

artisanpack-ui/core
===================

Supplies the core functionality for ArtisanPack UI that needs to be shared across all packages.

1.2.0(1mo ago)12.9k17MITPHPPHP ^8.2CI passing

Since Oct 2Pushed 1mo agoCompare

[ Source](https://github.com/ArtisanPack-UI/core)[ Packagist](https://packagist.org/packages/artisanpack-ui/core)[ RSS](/packages/artisanpack-ui-core/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (18)Versions (25)Used By (17)

ArtisanPack UI Core
===================

[](#artisanpack-ui-core)

The ArtisanPack UI Core package provides the foundational functionality for the ArtisanPack UI ecosystem. Its primary purpose is to **unify all configuration files** from multiple ArtisanPack UI packages into a single, centralized `artisanpack.php` configuration file. This approach eliminates configuration sprawl and provides a single source of truth for all your ArtisanPack UI package settings.

Features
--------

[](#features)

- **Unified Configuration Management**: Merge all ArtisanPack UI package configurations into a single `config/artisanpack.php` file
- **Automatic Configuration Scaffolding**: Use the `artisanpack:scaffold-config` command to automatically detect and merge configurations from all installed ArtisanPack UI packages
- **Preservation of Custom Settings**: Existing customizations are preserved when scaffolding configurations
- **Laravel Integration**: Seamless integration with Laravel's service container and configuration system
- **Force Override Option**: Ability to force-update existing configuration keys when needed

Installation
------------

[](#installation)

You can install the ArtisanPack UI Core package by running the following composer command:

```
composer require artisanpack-ui/core
```

The package will automatically register its service provider in Laravel applications.

Configuration
-------------

[](#configuration)

### Publishing the Configuration File

[](#publishing-the-configuration-file)

To publish the base configuration file to your Laravel application:

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

This creates a `config/artisanpack.php` file where all your ArtisanPack UI package configurations will be centralized.

### Automatic Configuration Scaffolding

[](#automatic-configuration-scaffolding)

The core package provides a powerful command to automatically scaffold your configuration file with settings from all installed ArtisanPack UI packages:

```
php artisan artisanpack:scaffold-config
```

**Options:**

- `--force`: Overwrite existing configuration keys (by default, existing keys are preserved)

### Manual Configuration

[](#manual-configuration)

You can also manually configure individual packages in your `config/artisanpack.php` file:

```
