Skip to content

PHP client library for Commerce.js by Chec

License

Notifications You must be signed in to change notification settings

adamlehmann/commerce.php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. Run the following command:

composer require chec/commerce:*

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Getting Started

Simple usage looks like:

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

About

PHP client library for Commerce.js by Chec

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%