Code Monkey home page Code Monkey logo

3dcart-api-php-client's Introduction

Build Status codecov Codacy Badge

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/)

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

Minimum PHP Version: 5.6

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!

  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

3dcart-api-php-client's People

Stargazers

 avatar

Watchers

 avatar

Forkers

palpalani

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.