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
git clone https://github.com/Menes1337/3dcart-api-php-client.git
cd 3dcart-api-php-client
composer install
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);
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);
You are welcome to contribute!
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - 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
- Commit your changes (
git commit -am 'Add some feature'
)) - Push to the branch (
git push origin my-new-feature
) - Create a new pull request