Download the PHP package monyxie/pingpp-laravel6 without Composer

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

# pingpp-laravel5-plus pingxx基于laravel5的封装

Latest Stable Version Total Downloads Latest Unstable Version License

配置方法

  1. composer.json里添加如下内容,并运行composer update:

  2. app/config/app.php文件里的providers变量下添加lyt8384\Pingpp\PingppServiceProvider::class,
  3. app/config/app.php文件里的aliases变量下添加'Pingpp' => lyt8384\Pingpp\Facades\Pingpp::class,
  4. 运行php artisan vendor:publish --provider="lyt8384\Pingpp\PingppServiceProvider"生成配置文件
  5. 修改配置文件里面的2组key
  6. 若需回调验证,请填写public_key_path注意该处是路径!,这里参考官方已改为路径,同时当前会兼容旧版本配置文件
  7. 若需要使用商户身份验证,请填写private_key_path注意该处是路径! 线上生产环境建议配置.evn来配置生产环境

使用方法

错误调用

当Pingpp调用发生错误的时候会return false,此时调用Pingpp::getError();返回具体错误内容。

接收 Webhooks 通知

直接调用Pingpp::notice(),若验证成功,会返回通知的array结构数据,若失败直接弹出错误回Pingpp。如果需要记录错误,请自行监听系统错误,详见Errors & Logging

其他使用方法见官方文档PingPlusPlus

感谢

感谢几位forked的同学的改进,当时写的很简单,无入侵式的写法,其实在接收webhooks方面,可以用Laravel自己的Events去监听处理,显得更Laravel风格。


All versions of pingpp-laravel6 with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
laravel/framework Version 6.*
ext-curl Version *
illuminate/support Version 6.*
pingplusplus/pingpp-php Version >=2.1.2
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 monyxie/pingpp-laravel6 contains the following files

Loading the files please wait ....