Download the PHP package li-bao-jia/we-chat-devtools without Composer

On this page you can find all versions of the php package li-bao-jia/we-chat-devtools. 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 we-chat-devtools

WeChat Devtools

提供微信小程序上传、预览、构建等服务

Build Status Total Downloads Latest Stable Version License

描述 we-chat-devtools

-

微信开发者工具小程序上传封装SDK(PHP)

PHP 开发环境下,开发者可以通 HTTP 请求指示工具进行登录、预览、上传等操作。

需求

安装

通过 Composer 安装 we-chat-devtools

1.项目目录下执行

composer require li-bao-jia/we-chat-devtools

2.或编辑 composer.json 文件安装

"require": {
    "li-bao-jia/we-chat-devtools": "*"
}

用法

1、使用前,你需要根据具操作系统了解微信开发者工具端口号文件位置:

    macOS : ~/Library/Application Support/微信开发者工具/<开发者工具安装路径的MD5>/Default/.ide

    Windows : ~/AppData/Local/微信开发者工具/User Data/<开发者工具安装路径的MD5>/Default/.ide

2、如果你已经获取了端口号

    2.1、你可以这样使用

    (new Devtool())->setPort($port)->setMethod('login')->setParameters($parameters)->response()

    或

    (new Devtool(['port' => $port]))->setMethod('login')->setParameters($parameters)->response()

3、如果你想自动获取端口号,可以这样

    3.1、你需要提供你的安装路径 install_path、端口前缀 port_path_prefix、端口后缀 port_path_suffix,如下:

    (new Devtool([
        'install_path' => "/Applications/wechatwebdevtools.app/Contents/MacOS",
        'port_path_prefix' => "/Users/my-name/Library/Application Support/微信开发者工具",
        'port_path_suffix' => "/Default/.ide"
    ]))->setMethod('login')->setParameters($parameters)->response()

    或

    (new Devtool())->setConfig([
        'install_path' => "/Applications/wechatwebdevtools.app/Contents/MacOS",
        'port_path_prefix' => "/Users/my-name/Library/Application Support/微信开发者工具",
        'port_path_suffix' => "/Default/.ide"
    ])->setMethod('login')->setParameters($parameters)->response()

4、……

方法

方法 参数 返回 注释
setConfig array $config $this 数组的方式改变设置项
setUrl string $url $this http url 改变方法
setPort string $port $this 设置端口号
setMethod string $method $this 设置请求方法
setVersion string $version $this 定义版本 默认 v2
setParameters array $parameters $this 已数组的方式传递参数
response _ mixed 开发者工具返回内容

微信文档参考:

支持

……

许可证

这个软件包是根据 MIT许可证 授权的开源软件

说明

计划

联系方式


All versions of we-chat-devtools with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
ext-curl Version *
ext-json Version *
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 li-bao-jia/we-chat-devtools contains the following files

Loading the files please wait ...