承接 arwg/env-knife 相关项目开发

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

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

arwg/env-knife

Composer 安装命令:

composer require arwg/env-knife

包简介

A library for extracting and validating env-functions such as env(), config() on sources.

README 文档

README

Latest Version on Packagist

Overview

A library for extracting and validating env-functions such as env(), config() on sources

Installation

composer require arwg/env-knife

Usage

Simple to use. Input the name of the function used to load environment variables on source codes. The thing is that no key-value setup is required.

      $envKnife = new EnvKnife();
      
      // For the first parameter, you can set any function name you are using for loading environment variables.
      
      // Detect funcs such as env('URL'), env("APP_CRITICAL", 5) 
      // !! Variable types are limited to 'string, numeric, boolean'
      $envKnife->parseResults('env', base_path(), ['app', 'bootstrap', 'config', 'routes']);
      
      // Detect when 'env('URL') returns null'
      $results = $envKnife->getEmptyResults();     

      // Detect funcs such as config('abc'), config("ABC_CRITICAL", 5) 
      // !! Variable types are limited to 'string, numeric, boolean'
      $envKnife->parseResults('config', base_path(), ['app', 'bootstrap', 'config']);
      
      $results = $envKnife->getEmptyResults();
      
      // Detect errors such as "undefined index 'c'" in config('abc')['v']['c'] in case that there is no 'c'.
      $results2 = $envKnife->getErrorResults();

Changelog

Changelog

License

License File

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固