Skip to content

ArtisanPack UI home

Core

The foundational package that powers the entire ecosystem. Core unifies every ArtisanPack UI package's configuration into a single artisanpack.php file — one source of truth, zero configuration sprawl.

v1.3.1

MIT License

★ 1

composer require artisanpack-ui/core
terminal
$ composer require artisanpack-ui/core
Using version ^1.2 for artisanpack-ui/core
✓ Installed

$ php artisan vendor:publish --tag=artisanpack-config
✓ Published config/artisanpack.php

$ php artisan artisanpack:scaffold-config
✓ Merged config from 4 packages

What it does

One config file to rule them all

Core replaces scattered per-package config files with a single, centralized source of truth — scaffolded automatically and safe to customize.

Unified configuration

Merge every ArtisanPack UI package's config into a single config/artisanpack.php file.

Automatic scaffolding

Run artisanpack:scaffold-config to detect and merge configs from all installed packages.

Preserves your settings

Existing customizations stay intact when scaffolding — nothing is overwritten by default.

Laravel integration

Auto-registers its service provider and hooks into Laravel's container and config system.

Force override

Need a clean slate? The --force flag updates existing keys exactly when you want it to.

Single source of truth

Read everything through config('artisanpack.*') — no more hunting across scattered files.

From install to unified config in five steps

1

Install

Pull in Core and any ArtisanPack UI packages through Composer.

2

Detect

scaffold-config finds every tagged config file across your installed packages.

3

Merge

Each package's settings land in its own section of config/artisanpack.php.

4

Preserve

Your existing customizations stay untouched unless you pass the --force flag.

5

Access

Read any setting through Laravel's standard config() helper.

Three commands to a centralized config

Install Core, publish the base file, then let the scaffold command detect and merge configuration from every installed package.

1 · Install

composer require artisanpack-ui/core

2 · Publish

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

3 · Scaffold

php artisan artisanpack:scaffold-config

UsesCore.php

// Access core through the facade
use ArtisanPackUI\Core\Facades\Core;

$core = Core::getInstance();

config.php

// Read any package's settings
$cms = config('artisanpack.cms-framework');

$title = config(
'artisanpack.cms-framework.settings.site_title',
'Default Title'
);

Supported versions

Requires PHP 8.2+ and Laravel 11, 12 or 13. Pick the Core release that matches your stack.

Package version PHP Laravel versions
1.0.x 8.2+ 10.x, 11.x, 12.x
1.1.x 8.2+ 11.x, 12.x
1.2.x 8.2+ 11.x, 12.x, 13.x
Laravel 13 requires PHP 8.3+. PHP 8.2 users continue to receive Laravel 11 / 12.

Updates

Latest Updates

Ready to build on Core?

Install the foundation in one command and start unifying your configuration today. Free and open source under the MIT license.