Download the PHP package buddysoft/yii2-setting without Composer

On this page you can find all versions of the php package buddysoft/yii2-setting. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-setting

使用数据库存储通用配置项

简介

为 Yii2 封装的一个配置项管理模块。

特性:

  1. 支持从配置文件读取应用的默认配置项
  2. 支持使用 Yii2 内置的各种 validators 对配置做验证
  3. 内置配置项无法删除,意外删除后会自动用默认配置项填充
  4. 提供配置页面对配置项进行管理

适用环境:

使用方法

1.安装

2.导入数据表

3.创建配置文件

示例文件位置: yii2-setting/migrations/settings.php

推荐拷贝配置文件到目标应用的 config 目录,以 Yii2 高级模板的 backend 应用为例:

导入口,可以对配置项进行修改、添加或删除。

4.配置管理页面模块

修改 backend/config/main.php

经过以上配置,就能在浏览中访问配置界面了:

http://localhost/setting/setting/index

跟 Yii2-admin 配合使用时,记得将 setting/setting/* 访问权限添加给用户。

5.在代码中使用配置项

配置项定义方法

示例:

配置中使用 options 配置 validator 对 value 的合法性进行验证。

options 有两个属性:

分类功能

为了方便在后台管理所有配置项,所以给配置项增加了分类(category)属性,后台展示时,同一分类的配置项在一个 Tab 中展示。

注意:配置项不会根据分类进行隔离,所有配置项都在同一名字空间中。


All versions of yii2-setting with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.15
yiisoft/yii2 Version ~2.0.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package buddysoft/yii2-setting contains the following files

Loading the files please wait ....