Download the PHP package fengsha/utils without Composer

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

PHP工具包

支持 Laravel 5.1 以上,工具包目前有 Log功能。

日志使用开始

Laravel 5.x:

Usage

Log

普通日志方法

Example:

特殊日志方法

Example:

基础日志变更保存路径

type 默认读取 base 配置,文件名默认为 custom.channel 名称

使用时加上自定义路径,路径定以后可以省略路径参数,路径参数请使用绝对路径

路径定以后想再次变更路径

SmokeTest

ExtensionTrait

引用

Example:

checkExtension 检测扩展

配置信息是以 key => value 的方式传递。如果key存在,则会检测该扩展是否已经被加载上。如果value存在,则会检测该扩展的版本(对版本的检测暂时只支持主版本号和次版本号的检测)。如果不想检测扩展的版本号,则可以把value设为"*",这样就可以跳过版本的检测。同时支持对php版本的检测(同样只支持主版本号和次版本号)

checkExtension方法通过$this调用

Example:

checkExtensionVersion 测试扩展的版本号

Example:

日志使用结束

分布式redis锁开始

如果项目没有引入过这个工具,可以在composer.json中引入,增加 repostories 项

分布式redis锁结束


All versions of utils with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
illuminate/contracts Version 8.*
illuminate/support Version 8.*
fluent/logger Version ^1.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 fengsha/utils contains the following files

Loading the files please wait ...