Download the PHP package lv_fan2008/wx_component without Composer

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

微信开放平台 公众号第三平台类库

wx_component 2.0 微信公众号第三平台类库,PHP版本。

wx_component 2.0 是根据微信官方开放平台提供的文档开发的PHP类库, 第三方平台使用此类库,可以在部署代码和代公众号实现业务时,更加容易、方便上手。 wx_component 2.0 增加了代公众号实现对微信支付的支持

下载

你可以 clone 这个仓库,自行下载使用。

实现功能

  1. 实现公众号授权和绑定
  2. 代公众号实现业务
  3. 代公众号使用JS SDK
  4. 第三方平台事件通知处理
  5. 实现公众号全网发布接入检测的自动化测试代码
  6. 代公众号实现对微信支付的支持,包含:
    • 微信被扫支付
    • 微信扫码支付
    • 微信JSAPI支付
    • 微信地址本
    • 微信订单查询
    • 微信订单退款
    • 微信订单退款查询
    • 微信对账单下载
  7. 增加微信开放平台网站应用微信扫码登录支持
  8. 增加微信开放平台官方JS SDK DEMO的整体实现
  9. 增加对composer的支持

简单使用说明

  1. 假设配置网站根目录为/data/wx_component/
  2. 网站目录结构为/data/wx_component/example/和/data/wx_component/src/
  3. 假设网站域名为www.xxx.com
  4. 配置公众号第三方平台参数
  5. 把配置的第三方平台参数配置/example/config.php
  6. 配置完成后,等待component_verify_ticket消息(10分钟1次)到来后,进行全网发布接入检测。
  7. 如果不成功,检查以下几项
    • 检查/example/目录是否可写
    • 检查/example/cache/目录的日志文件,查看原因
    • 检查apache rewrite模块是否开启,是否支持.htaccess
  8. 发布成功后,用浏览器打开example的php样例,检测授权、js_sdk功能。

Composer安装说明

  1. composer require lv_fan2008/wx_component
  2. composer中文文档参考http://docs.phpcomposer.com/

我的测试环境

  1. 使用的是阿里云主机
  2. 操作系统为Debian 8.0 64Bits
  3. Apache/2.4.10 (Debian) PHP 5.6.27
  4. php扩展模块有curl openssl

建议和疑问

如果你有好的建议或者疑问,欢迎给我提issue或pull request,或者发邮件到[email protected] 。 也可以加入到QQ群519270384进行讨论。

LICENSE

MIT,尽情享受开源代码。


All versions of wx_component with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.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 lv_fan2008/wx_component contains the following files

Loading the files please wait ....