Download the PHP package zyprosoft/hyperf-common without Composer

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

内部库

一、使用zyprosoft/hyperf-skeleton项目来创建脚手架

  1. composer create-project zyprosoft/hyperf-skeleton
  2. 完成后执行composer install

ZGW协议接口开发

三段式接口名:大模块名.控制器.方法 使用AutoController(prefix="大模块名/控制器")进行注解之后, 按照ZGW协议请求便可自动调用到对应的方法 如下示范:ZgwController下使用AutoController(prefix="/common/zgw")进行注解之后便可 请求到sayHello方法

普通协议开发可直接按照想要的路径做AutoController注解即可

根据需求继承需要鉴权和不需要鉴权的Request

AdminRequest:需要管理员身份的请求 AuthedRequest:需要登陆身份的请求

zgw协议请求内容防篡改

签名算法: 在hyperf-common.php配置好appId和appSecret 第一步:生成当前时间戳timestamp和随机字符串nonce 第二步:取出协议中的interface.name和param, php eg. ; 第三步:将第一步取出的参数按照如下加入到param, php eg. ; 第四步:将第二步的param参数按照首字母升序 第五步:将第四部参数数组json编码后进行md5编码得到参数字符串paramString,注意这里json编码不要主动编码为Unicode,不转义/字符 第六步:按照下面的格式拼接参数: appId=$appId&appSecret=$appSecret&nonce=$nonce&timestamp=$timestamp&$paramString; 第七步:用appSecret和第六步字符串采用sha256算法算出签名 第八步:将得到的签名使用参数名signature加入到请求协议的外层即可

重点:如果是接口带文件上传,需要将上述得到的auth和interface字段进行json编码,后端会在获取到请求的时候自动解码

参考请求包


All versions of hyperf-common with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-swoole Version >=4.6.3
96qbhy/hyperf-auth Version ^2.2
doctrine/dbal Version ^3.0
gregwar/captcha Version 1.*
hyperf/async-queue Version ~2.2.0
hyperf/config Version ~2.2.0
hyperf/constants Version ~2.2.0
hyperf/crontab Version ~2.2.0
hyperf/filesystem Version ~2.2.0
hyperf/logger Version ~2.2.0
hyperf/metric Version ~2.2.0
hyperf/model-cache Version ~2.2.0
hyperf/session Version ~2.2.0
hyperf/utils Version ~2.2.0
hyperf/validation Version ~2.2.0
hyperf/scout Version ~2.2.0
hyperf/elasticsearch Version ~2.2.0
lustre/php-dfa-sensitive Version ^1.4
overtrue/flysystem-qiniu Version ^2.0
overtrue/wechat Version ~5.0
phpmailer/phpmailer Version ^6.2
qbhy/hyperf-multi-env Version ^2.0
qbhy/hyperf-testing 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 zyprosoft/hyperf-common contains the following files

Loading the files please wait ....