You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+81-35Lines changed: 81 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,47 +4,93 @@ PHP version:5.4.7+
4
4
Copyright:Ant financial services group
5
5
```
6
6
7
+
### Composer
8
+
9
+
You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:
10
+
11
+
```bash
12
+
composer require antom/global-open-sdk-php
13
+
```
14
+
15
+
To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):
16
+
17
+
```php
18
+
require_once 'vendor/autoload.php';
19
+
```
20
+
21
+
### Manual Installation
22
+
23
+
If you do not wish to use Composer, you can download the [latest release](https://github.com/alipay/global-open-sdk-php/releases). Then, to use the bindings, include the `init.php` file.
$env->setUserAgent('"Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15G77 NebulaSDK/1.8.100112 Nebula PSDType(1) AlipayDefined(nt:4G,ws:320|504|2.0) AliApp(AP/10.1.32.600) AlipayClient/10.1.32.600 Alipay Language/zh-Hans AlipayConnect"');
0 commit comments