定制 azaharizaman/nexus-laravel-setting-adapter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

azaharizaman/nexus-laravel-setting-adapter

最新稳定版本:v0.1.0-alpha1

Composer 安装命令:

composer require azaharizaman/nexus-laravel-setting-adapter

包简介

Laravel adapter for Setting package with configuration management

README 文档

README

This adapter provides Laravel-specific implementations for the Setting package, enabling configuration management in Laravel applications.

Purpose

The Setting package is an atomic package that must remain independently publishable. This adapter layer provides the concrete implementations that integrate Setting with the Laravel framework:

  • Cache integration - Uses Laravel's cache system
  • Authorization integration - Provides SettingsAuthorizerAdapter for integrating with Laravel's authorization system

Installation

composer require azaharizaman/nexus-laravel-setting-adapter

Adapters Provided

SettingRepositoryAdapter

Implements Nexus\Setting\Contracts\SettingRepositoryInterface using cache-only storage.

TODO: Database persistence is not yet implemented. Currently delegates to SettingsCacheAdapter.

SettingsCacheAdapter

Implements Nexus\Setting\Contracts\SettingsCacheInterface by using Laravel's cache system.

SettingsAuthorizerAdapter

Implements Nexus\Setting\Contracts\SettingsAuthorizerInterface by using Laravel's authorization system.

Service Provider

The SettingAdapterServiceProvider automatically binds the Setting interfaces to their adapter implementations when the Laravel application boots.

Architecture

This follows the Nexus Three-Layer Architecture:

  1. Atomic Layer (packages/Setting) - Pure business logic, no external dependencies
  2. Adapter Layer (adapters/Laravel/Setting) - Framework-specific implementations
  3. Application Layer - Uses adapters through interfaces

Dependencies

  • azaharizaman/nexus-setting - The atomic Setting package
  • illuminate/support - Laravel framework components
  • illuminate/database - Laravel database components
  • psr/log - PSR-3 logging interface

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固