定制 wernerwa/pat-configuration 二次开发

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

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

wernerwa/pat-configuration

Composer 安装命令:

composer require wernerwa/pat-configuration

包简介

patConfiguration is an interface to read and write different types of configuration files.

README 文档

README

patConfiguration is an interface to access (read AND write) XML based configuration files via PHP. Furthermore it can convert your XML config files into PHP config files. Furthermore it can convert your XML config files into PHP config files. With the use of extensions it allows you to retrieve fully configured objects from your configuration.

Current Version v2.0.0
Released 2005-08-13
Maintainer Stephan Schmidt
Developer(s) Stephan Schmidt
License LGPL

The former web page www.php-tools.net is archived at archive.org

Why should I use patConfiguration?

Using XML based configuration files has several advantages: Your configuration can be edited using any text editor, they can easily be validated using a dtd or xml schema, they are easy to read and configurations can easily be extended.

Features

patConfiguration is quite similar to the configuration reader i3conf by iternum GmbH, which was implemented in Java, but extends the features.

Currently the following features are implemented:

  • several types for configuration values are supported: string, boolean, double, integer and array.
  • Automatic conversion from strings to booleans, integers, arrays or doubles
  • identify a configuration value via its path (similar to DOM or XPath)
  • references to other configuration options in your config file, e.g. base a directory name on a basedir set in the same configuration
  • extend patConfiguration so it returns fully operational objects instead of simple config values (extension for patDbc, patUser and patTemplate are already implemented)
  • assign a certain namespace to your custom extensions
  • dynamically include your extensions (or any other files) via a configuration option
  • automatic creation of multidimensional array
  • unlimited tag depth
  • fetch several config options using wildcards
  • direct access to values in an array
  • modify and save config files in XML (or even create new ones)
  • convert XML config files into PHP config files where all options are stored in an array
  • uses caching, so XML files do not have to be parsed every time
  • use external entities to include other XML configurations
  • easy-to-use API

patConfiguration in Java

I ported the XML-functionality of patConfiguration to Java. The project XJConf is available from my website <java.schst.net>. patConfiguration - interface for reading and writing XML config files

Copyright (c) 2001-2003 by Stephan Schmidt schst@php-tools.net download at http://www.php-tools.net

CAUTION:

This is patConfiguration 2.0.0 patConfiguration is now driver-based and not restricted to XML files anymore. Furthermore it uses patErrorManager to handle errors. That means it breaks BC in most cases!

You downloaded this as a CVS snapshot. This version still contains some bugs and should not be used in a production environment.

This program and all associated files are released under the GNU Lesser Public License, see lgpl.txt for details!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: PHP-3.0
  • 更新时间: 2019-08-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固