https://github.com/chec/commerce.php
PHP client library for Commerce.js by Chec
https://github.com/chec/commerce.php
chec ecommerce php
Last synced: 6 months ago
JSON representation
PHP client library for Commerce.js by Chec
- Host: GitHub
- URL: https://github.com/chec/commerce.php
- Owner: chec
- License: mit
- Archived: true
- Created: 2016-11-19T02:37:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-01T15:28:28.000Z (almost 4 years ago)
- Last Synced: 2024-11-13T13:52:28.324Z (about 1 year ago)
- Topics: chec, ecommerce, php
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Commerce.php by Chec
PHP client library for Commerce.js by Chec
You can learn more about Commerce.js & Chec at https://commercejs.com.
## Requirements
PHP 5.4 and later.
## Install
You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:
```bash
composer require chec/commerce:*
```
To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):
```php
require_once('vendor/autoload.php');
```
## Getting Started
Simple usage looks like:
```php
Commerce\Auth::setApiKey('sk_test_8146250gNZ8gddde480e07ac91c10c2651077176aed27');
$products = Commerce\Product::all();
foreach($products as $k => $product):
echo $product['name'];
endforeach;
```
## Documentation
Please see https://commercejs.com/docs/api