Download the PHP package howtomakeaturn/allpay-4-laravel without Composer

On this page you can find all versions of the php package howtomakeaturn/allpay-4-laravel. 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 allpay-4-laravel

Allpay SDK wrapper for Laravel 4

Allpay-4-laravel是一個將歐付寶官方提供的SDK包裝好的Service Provider。

讓開發人員省去一再初始化SDK、輸入設定值的麻煩。

歐付寶官方SDK請見全方位金流SDK技術文件下載

注意:AllPay.Payment.Integration.php(整個Allpay SDK的核心檔案)並不是我所撰寫,是Allpay官網提供的SDK。所有功勞跟榮譽歸給Allpay工程師。

此package只是用service provider與 facade將其包裝、讓它在Laravel上更易於使用。


安裝

將allpay-4-laravel加到你的 composer.json:

接著用 composer 安裝:

登記 Package

將 service provider 登記在 內的 陣列 :

將類別縮寫登記在 內的 陣列 :

設定

在config資料夾新增 app/config/allpay-4-laravel.php ,然後加入以下code:

用法

由於allpay-4-laravel只是將歐付寶官方提供的SDK類別初始化之後加以包裝,實際上您還是在操作SDK類別物件。

歐付寶官方SDK請見全方位金流SDK技術文件下載

使用範例

官方文件範例

官方SDK文件,一般訂單範例如下:

使用allpay-4-laravel,您不再需要輸入服務參數。程式碼這樣寫即可:

進階用法

若您覺得Allpay::instance()字很多,可以使用縮寫Allpay::i()


All versions of allpay-4-laravel with dependencies

PHP Build Version
Package Version
No informations.
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 howtomakeaturn/allpay-4-laravel contains the following files

Loading the files please wait ....