承接 wpdiggerstudio/wpzylos-config 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

wpdiggerstudio/wpzylos-config

最新稳定版本:v1.0.0

Composer 安装命令:

composer require wpdiggerstudio/wpzylos-config

包简介

Configuration management with dot-notation and .env support for WPZylos framework

README 文档

README

PHP Version License GitHub

Configuration management with dot-notation and .env support for WPZylos framework.

📖 Full Documentation | 🐛 Report Issues

✨ Features

  • Dot-notation Access — Access nested values with config('app.name')
  • Environment Support — Load from .env files
  • Caching — Cache compiled configuration
  • Type Safety — Typed getters with defaults
  • Merging — Deep merge configuration arrays

📋 Requirements

Requirement Version
PHP ^8.0

🚀 Installation

composer require wpdiggerstudio/wpzylos-config

📖 Quick Start

use WPZylos\Framework\Config\Repository;

$config = new Repository([
    'app' => [
        'name' => 'My Plugin',
        'debug' => true,
    ],
    'database' => [
        'prefix' => 'myplugin_',
    ],
]);

// Dot-notation access
$config->get('app.name');           // 'My Plugin'
$config->get('app.debug');          // true
$config->get('missing', 'default'); // 'default'

🏗️ Core Features

Dot-notation Access

$config->get('database.connections.mysql.host');
$config->set('database.connections.mysql.port', 3307);
$config->has('database.connections.mysql');

Loading from Files

$config = Repository::load(__DIR__ . '/config');

// Loads all PHP files in config/ directory
// config/app.php -> config('app.key')
// config/database.php -> config('database.key')

Environment Variables

// In .env
APP_DEBUG=true
DB_HOST=localhost

// In config/app.php
return [
    'debug' => env('APP_DEBUG', false),
    'db_host' => env('DB_HOST', 'localhost'),
];

📦 Related Packages

Package Description
wpzylos-core Application foundation
wpzylos-container Dependency injection
wpzylos-scaffold Plugin template

📖 Documentation

For comprehensive documentation, tutorials, and API reference, visit wpzylos.com.

☕ Support the Project

If you find this package helpful, consider buying me a coffee! Your support helps maintain and improve the WPZylos ecosystem.

Donate with PayPal

📄 License

MIT License. See LICENSE for details.

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Made with ❤️ by WPDiggerStudio

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固