Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 59 | All time: 10,514 This week: 41 |
Version | License | PHP version | Categories | |||
billbee-php-sdk 1.8.0 | MIT/X Consortium ... | 5 | PHP 5, E-Commerce, Web services |
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 (98) |
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 (98) | / | 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 (98) | / | src | / | Exception |
File | Role | Description |
---|---|---|
InvalidIdException.php | Class | Class source |
QuotaExceededException.php | Class | Class source |
Files (98) | / | 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 (98) | / | src | / | Model | / | Search |
File | Role | Description |
---|---|---|
CustomerResult.php | Class | Class source |
OrderResult.php | Class | Class source |
ProductResult.php | Class | Class source |
Files (98) | / | src | / | Response |
File | Role | Description | ||
---|---|---|---|---|
Model (1 file) | ||||
BaseResponse.php | Class | Class source | ||
CreateDeliveryNoteResponse.php | Class | Class source | ||
CreateInvoiceResponse.php | Class | Class source | ||
GetCategoriesResponse.php | Class | Class source | ||
GetCloudStoragesResponse.php | Class | Class source | ||
GetCustomerAddressesResponse.php | Class | Class source | ||
GetCustomerAddressResponse.php | Class | Class source | ||
GetCustomerResponse.php | Class | Class source | ||
GetCustomersResponse.php | Class | Class source | ||
GetCustomFieldDefinitionResponse.php | Class | Class source | ||
GetCustomFieldDefinitionsResponse.php | Class | Class source | ||
GetEventsResponse.php | Class | Class source | ||
GetInvoicesResponse.php | Class | Class source | ||
GetLayoutsResponse.php | Class | Class source | ||
GetOrderByPartnerResponse.php | Class | Class source | ||
GetOrderResponse.php | Class | Class source | ||
GetOrdersResponse.php | Class | Class source | ||
GetPatchableFieldsResponse.php | Class | Class source | ||
GetProductResponse.php | Class | Class source | ||
GetProductsResponse.php | Class | Class source | ||
GetShippingProvidersResponse.php | Class | Class source | ||
GetTermsInfoResponse.php | Class | Class source | ||
SearchDataResponse.php | Class | Class source | ||
ShipWithLabelResponse.php | Class | Class source | ||
UpdateStockResponse.php | Class | Class source |
Files (98) | / | src | / | Response | / | Model |
File | Role | Description |
---|---|---|
ShipmentWithLabelResult.php | Class | Class source |
Files (98) | / | src | / | Transformer |
File | Role | Description |
---|---|---|
DefinitionConfigTransformer.php | Class | Class source |
Files (98) | / | 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 (98) | / | 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 (98) | / | tests | / | Model |
File | Role | Description |
---|---|---|
ShipmentTest.php | Class | Class source |
StockCodeTest.php | Class | Class source |
StockTest.php | Class | Class source |
Files (98) | / | tests | / | Transformer |
File | Role | Description |
---|---|---|
DefinitionConfigTransformerTest.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
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.