1
1
Bigcommerce API Client
2
2
======================
3
3
4
- PHP package for connecting to the Bigcommerce V2 REST API.
4
+ PHP client for connecting to the Bigcommerce V2 REST API.
5
5
6
6
To find out more, visit the official documentation website:
7
7
http://developer.bigcommerce.com/
@@ -24,28 +24,37 @@ the 'Enable the XML API?' is ticked.
24
24
Installation
25
25
------------
26
26
27
- Download the required PHP code for the Bigcommerce REST API client and copy it
28
- to your PHP include path, or use the following Composer command to install the
27
+ Use the following Composer command to install the
29
28
API client from [ the Bigcommerce vendor on Packagist] ( https://packagist.org/packages/bigcommerce/api ) :
30
29
31
30
```
32
31
$ composer require bigcommerce/api
33
32
$ composer update
34
33
```
35
34
36
- All the examples below assume the ` Bigcommerce\Api\Client ` class is imported
37
- into the scope with the following namespace declaration:
38
-
39
- ```
40
- use Bigcommerce\Api\Client as Bigcommerce;
41
- ```
42
- You can also install composer for this specific project by running the following in the library folder.
35
+ You can also install composer for your specific project by running the following in the library folder.
43
36
44
37
```
45
38
curl -sS https://getcomposer.org/installer | php
46
39
php composer.phar install
47
40
composer install
41
+ ```
48
42
43
+ If you don’t want to use Composer and Packagist, the API client is also distributed as a single
44
+ PHP file (` bigcommerce.php ` ) which you can include directly into your project:
45
+
46
+ ```
47
+ require 'path/to/bigcommerce.php';
48
+ ```
49
+
50
+ Namespace
51
+ ---------
52
+
53
+ All the examples below assume the ` Bigcommerce\Api\Client ` class is imported
54
+ into the scope with the following namespace declaration:
55
+
56
+ ```
57
+ use Bigcommerce\Api\Client as Bigcommerce;
49
58
```
50
59
51
60
Configuration
0 commit comments