2017 © Pedro Peláez
 

library 3dcart-api-php-client

PHP client library for accessing 3dCart Soap API, Soap Advanced API and REST API

image

menes1337/3dcart-api-php-client

PHP client library for accessing 3dCart Soap API, Soap Advanced API and REST API

  • Sunday, August 20, 2017
  • by Menes1337
  • Repository
  • 0 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Build Status codecov Codacy Badge, (*1)

3dcart PHP Api-Client

Project properties

Codestyle: PSR-1 (http://www.php-fig.org/psr/psr-1/) / PSR-2 (http://www.php-fig.org/psr/psr-2/), (*2)

Autoloading: PSR-4 (http://www.php-fig.org/psr/psr-4/), (*3)

Minimum PHP Version: 5.6, (*4)

Example usage

Project Initialization

git clone https://github.com/Menes1337/3dcart-api-php-client.git
cd 3dcart-api-php-client
composer install

Soap API

include('vendor' . DIRECTORY_SEPARATOR . 'autoload.php');

use \ThreeDCart\Primitive\StringValueObject;

$soapFactory = new \ThreeDCart\Api\Soap\Factory();
$soapClient  = $soapFactory->getApiClient(
    new StringValueObject('Your 3dcart API key'),
    new StringValueObject('yourstore.3dcartstores.com')
);

$customerObjects = $soapClient->getCustomers();

var_dump($customerObjects);

Advanced SOAP API

include('vendor' . DIRECTORY_SEPARATOR . 'autoload.php');

use \ThreeDCart\Primitive\StringValueObject;

$soapFactory = new \ThreeDCart\Api\Soap\Factory();
$advancedClient  = $soapFactory->getAdvancedApiClient(
    new StringValueObject('Your 3dcart API key'),
    new StringValueObject('yourstore.3dcartstores.com')
);

$plainCustomersArray = $advancedClient->runQuery(
    new StringValueObject('SELECT * FROM customer')
);

var_dump($plainCustomersArray);

Contributing

You are welcome to contribute!, (*5)

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make sure the codestyle (PSR-1 / PSR-2) is applied to your changes, your code is PHP Unit tested and can be executed on PHP 5.6/7.0/7.1
  4. Commit your changes (git commit -am 'Add some feature'))
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new pull request

The Versions

20/08 2017

dev-feature/3dCart-REST-Api

dev-feature/3dCart-REST-Api

PHP client library for accessing 3dCart Soap API, Soap Advanced API and REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Müller

api rest library soap 3dcart

16/08 2017

dev-master

9999999-dev

PHP client library for accessing 3dCart Soap API, Soap Advanced API and REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Müller

api rest library soap 3dcart

19/03 2017

0.5.0

0.5.0.0

PHP client library for accessing 3dCart Soap API, Soap Advanced API and REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oliver Müller