Download .zip |
Info | Documentation | View files (98) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2019-12-09 (Yesterday) | Not yet rated by the users | Total: 10 This week: 10 | All time: 9,778 This week: 26 |
Version | License | PHP version | Categories | |||
billbee-php-sdk 1.8.0 | MIT/X Consortium ... | 5 | PHP 5, E-Commerce, Web services |
Description | Author | |
This package can manage sales in multiple sites with BillBee API. |
|
With this package you can implement the official Billbee API in your application.
You can add this package as composer dependency
$ composer require billbee/billbee-api
https://app.billbee.io/swagger/ui/index
Simply instantiate a client object for accessing the api:
<?php
$user = 'Your Billbee username';
$apiPassword = 'Your Billbee API Password'; // https://app.billbee.io/de/settings/api
$apiKey = 'Your Billbee API Key';
$client = new \BillbeeDe\BillbeeAPI\Client($user, $apiPassword, $apiKey);
<?php
$user = 'Your Billbee username';
$apiPassword = 'Your Billbee API Password'; // https://app.billbee.io/de/settings/api
$apiKey = 'Your Billbee API Key';
$client = new \BillbeeDe\BillbeeAPI\Client($user, $apiPassword, $apiKey);
/ @var \BillbeeDe\BillbeeAPI\Response\GetProductsResponse $productsResponse */
$productsResponse = $client->getProducts($page = 1, $pageSize = 10);
/ @var \BillbeeDe\BillbeeAPI\Model\Product $product */
foreach ($productsResponse->data as $product) {
echo sprintf("Id: %s, SKU: %s, Price: %f\n", $product->id, $product->sku, $product->price);
}
<?php
$user = 'Your Billbee username';
$apiPassword = 'Your Billbee API Password'; // https://app.billbee.io/de/settings/api
$apiKey = 'Your Billbee API Key';
$client = new \BillbeeDe\BillbeeAPI\Client($user, $apiPassword, $apiKey);
$client->useBatching = true; # Enable batching
$client->getProducts(1, 1); # Adds the request to the batch pool / returns null
$client->getOrders(1, 1); # Adds the request to the batch pool / returns null
$client->getEvents(1, 1); # Adds the request to the batch pool / returns null
$results = $client->executeBatch(); # Results contain all responses in the added order
/ @var \BillbeeDe\BillbeeAPI\Response\GetProductsResponse $productsResult */
$productsResult = $results[0];
/ @var \BillbeeDe\BillbeeAPI\Response\GetOrdersResponse $productsResult */
$ordersResult = $results[1];
/ @var \BillbeeDe\BillbeeAPI\Response\GetEventsResponse $productsResult */
$eventsResult = $results[2];
Clone the repository, copy the test_config.dist.yml
to test_config.yml
and fill it.
Run phpunit
Feel free to fork the repository and create pull-requests
Files |
File | Role | Description | ||
---|---|---|---|---|
doc (1 file) | ||||
src (2 files, 6 directories) | ||||
tests (3 files, 2 directories) | ||||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Read me | ||
test_config.dist.yml | Data | Auxiliary data |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Exception (2 files) | ||||
Logger (1 file) | ||||
Model (36 files, 1 directory) | ||||
Response (25 files, 1 directory) | ||||
Transformer (1 file) | ||||
Type (13 files) | ||||
AbstractClient.php | Class | Class source | ||
Client.php | Class | Class source |
Files | / | src | / | Exception |
File | Role | Description |
---|---|---|
InvalidIdException.php | Class | Class source |
QuotaExceededException.php | Class | Class source |
Files | / | src | / | Model |
File | Role | Description | ||
---|---|---|---|---|
Search (3 files) | ||||
Address.php | Class | Class source | ||
BillOfMaterialProduct.php | Class | Class source | ||
Category.php | Class | Class source | ||
CloudStorage.php | Class | Class source | ||
Comment.php | Class | Class source | ||
Customer.php | Class | Class source | ||
CustomerAddress.php | Class | Class source | ||
CustomFieldDefinition.php | Class | Class source | ||
DeliveryNoteDocument.php | Class | Class source | ||
Dimensions.php | Class | Class source | ||
Event.php | Class | Class source | ||
Image.php | Class | Class source | ||
Invoice.php | Class | Class source | ||
InvoiceDocument.php | Class | Class source | ||
InvoicePosition.php | Class | Class source | ||
Layout.php | Class | Class source | ||
MessageForCustomer.php | Class | Class source | ||
Order.php | Class | Class source | ||
OrderItem.php | Class | Class source | ||
OrderItemAttribute.php | Class | Class source | ||
PartnerOrder.php | Class | Class source | ||
Product.php | Class | Class source | ||
ProductCustomField.php | Class | Class source | ||
Seller.php | Class | Class source | ||
Shipment.php | Class | Class source | ||
ShipmentWithLabel.php | Class | Class source | ||
ShippingProduct.php | Class | Class source | ||
ShippingProvider.php | Class | Class source | ||
SoldProduct.php | Class | Class source | ||
Source.php | Class | Class source | ||
Stock.php | Class | Class source | ||
StockCode.php | Class | Class source | ||
TermsInfo.php | Class | Class source | ||
TranslatableText.php | Class | Class source | ||
WebHook.php | Class | Class source | ||
WebHookFilter.php | Class | Class source |
Files | / | src | / | Model | / | Search |
File | Role | Description |
---|---|---|
CustomerResult.php | Class | Class source |
OrderResult.php | Class | Class source |
ProductResult.php | Class | Class source |
Files | / | src | / | Response |
Files | / | src | / | Type |
File | Role | Description |
---|---|---|
ArticleSource.php | Class | Class source |
CustomFieldDefinitionType.php | Class | Class source |
EventType.php | Class | Class source |
InvoiceType.php | Class | Class source |
LayoutType.php | Class | Class source |
OrderState.php | Class | Class source |
Partner.php | Class | Class source |
PaymentType.php | Class | Class source |
ProductCondition.php | Class | Class source |
ProductLookupBy.php | Class | Class source |
SearchMode.php | Class | Class source |
SearchType.php | Class | Class source |
SendMode.php | Class | Class source |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Model (3 files) | ||||
Transformer (1 file) | ||||
autoload.php | Aux. | Auxiliary script | ||
ClientTest.php | Class | Class source | ||
EchoLogger.php | Class | Class source |
Files | / | tests | / | Model |
File | Role | Description |
---|---|---|
ShipmentTest.php | Class | Class source |
StockCodeTest.php | Class | Class source |
StockTest.php | Class | Class source |
Files | / | tests | / | Transformer |
File | Role | Description |
---|---|---|
DefinitionConfigTransformerTest.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.