Download the PHP package afosto/shopctrl without Composer
On this page you can find all versions of the php package afosto/shopctrl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package shopctrl
ShopCtrl
Use this client to convieniently interact with ShopCtrl. This PHP package was developed by Afosto to make a reliable connection between Afosto (Retail Software) and ShopCtrl and provides the following functionality:
- get product data from ShopCtrl
- get order data from ShopCtrl
- create new orders at ShopCtrl
Getting Started
Simply follow the installation instructions. You will need an account at ShopCtrl that is set up for you to use.
Prerequisites
What things you need to install the software and how to install them
- PHP5.5+
- Composer (for installation)
Installing
Installing is easy through Composer.
Examples
Now, to fetch productdata from ShopCtrl use the following code.
First set some configuration parameters:
Define the settings with data obtained from ShopCtrl
Initialze the application:
Get a product (from shop context)
Run a foreach for ProductSelections to get shop-context-related data and the full product that belongs to the productSelection data
Generate an order
To create an order use the following sample. First set the contact data.
Create an order row.
Create an order.
Set some specific data for the order based on the context / settings
Now create the order
Now use the new data (model is updated with the results from the server)
Other examples
In the examples directory you will find more examples of this project.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details
All versions of shopctrl with dependencies
doctrine/inflector Version v1.0.1
afosto/bp Version ^2.0
psr/cache Version ^1.0