Download the PHP package taoser/think-setarr without Composer

On this page you can find all versions of the php package taoser/think-setarr. 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 think-setarr

简介

插件化开发,安装插件时很多情况需要修改配置文件,通过正则能完美解决修改配置影响备注信息的问题。 taoser/think-setarr通过配置数组,即可非常简便的修改、添加、删除配置文件中的数据,使得插件化开发更加统一和灵活的对配置文件的操作。

配置文件数组遵守的规则为:

  1. 一个数组中,无论它有多少个元素及是否包含子数组,它的索引数组(一维)在前,关联(多维)数组排序在后。
  2. 数组每个元素后加号,数组结尾],逗号,以方便需要插入新元素时识别。

安装

使用

类引用变量app即为config/app.php文件

添加数组节点

可以对配置文件数组中添加新的元素,添加规则:

  1. 支持嵌套4级数组,最后一级数组元素只能是一维数组,
  2. 只能给一维数组元素添加备注“//备注”,不能添加在关联数组的前面,
  3. 函数,类,需要引号包裹"",
  4. bool,数值,字符串非索引的元素的添加会重复添加,
  5. 结果返回布尔值

编辑数组节点

数组编辑,

  1. 不能直接对非索引(下标0,1数值型索引)元素数组进行操作,
  2. 索引数组的编辑需要先delete删除(如true,111,"app()","//备注"),再add添加value(如,false,12345,"support\bootstrap\Session::class,","备注2")。

删除数值

删除元素规则

  1. “//备注”、bool、111、'abcd'等,给定value即会删除;
  2. 关联数组需要给定key和value,value值为空,0,false,null均会删除。
  3. 删除数据是一条一条删除的,不能只给一个数组的key
  4. 一个数组删除后会空会把空数组删除

清理空数组

详细参考 作者


All versions of think-setarr with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
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 taoser/think-setarr contains the following files

Loading the files please wait ....