All Projects â†’ billbeeio â†’ billbee-php-sdk

billbeeio / billbee-php-sdk

Licence: MIT License
🔌 The official Billbee API SDK for PHP 💻

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to billbee-php-sdk

bagisto-bulk-upload
The Laravel eCommerce Bulk Upload allows the admin to create and add a bulk number of products into Bagisto online store.
Stars: ✭ 16 (+14.29%)
Mutual labels:  ecommerce
SyliusReportPlugin
Report Plugin for Sylius. This plugin add a report interface to the Sylius administration. Some reports comes with this bundle but you can create your custom reports.
Stars: ✭ 25 (+78.57%)
Mutual labels:  ecommerce
dummy-products-api
An api to fetch dummy e-commerce product 👕 👗 👖 👚 JSON data with placeholder images.
Stars: ✭ 102 (+628.57%)
Mutual labels:  ecommerce
commercejs-nextjs-vercel
Serverless eCommerce demo store built for the Jamstack. Built with Commerce.js, Next.js and can be one click deployed to Vercel. Includes product catalogue, categories, variants, cart, checkout, order confirmation and printable receipts. This is an open source project.
Stars: ✭ 68 (+385.71%)
Mutual labels:  ecommerce
taxjar-java
Sales Tax API Client for Java
Stars: ✭ 13 (-7.14%)
Mutual labels:  ecommerce
magento2
Vue Storefront 2 integration for Magento 2
Stars: ✭ 94 (+571.43%)
Mutual labels:  ecommerce
scheduler
Task Scheduler for Laravel applications. UI from scratch
Stars: ✭ 18 (+28.57%)
Mutual labels:  composer-package
php-client
🚀 Apisearch PHP Client
Stars: ✭ 26 (+85.71%)
Mutual labels:  ecommerce
kirby-flat-file-snipcart
Demo code for a Snipcart-powered Kirby CMS e-commerce project.
Stars: ✭ 14 (+0%)
Mutual labels:  ecommerce
awrora-starter
Landing page template built with one of most popular javascript library Vue.JS, Vuetify (Material Design) and Nuxt.JS with SSR.
Stars: ✭ 38 (+171.43%)
Mutual labels:  ecommerce
SyliusInvoicingPlugin
This plugin enables generating invoices in Sylius platform application.
Stars: ✭ 21 (+50%)
Mutual labels:  ecommerce
amazon-ivs-ecommerce-web-demo
This repository shows how you can build a compelling eCommerce experience with Amazon IVS.
Stars: ✭ 19 (+35.71%)
Mutual labels:  ecommerce
django-ecommerce-project
The Django-Ecommerce is an open-source project initiative and tutorial series built with Python and the Django Framework.
Stars: ✭ 182 (+1200%)
Mutual labels:  ecommerce
symfocommerce
Symfony 3 framework based ecommerce (eshop) project
Stars: ✭ 25 (+78.57%)
Mutual labels:  ecommerce
mini-project
An android eCommerce application for students through which they can buy and sell used goods .
Stars: ✭ 26 (+85.71%)
Mutual labels:  ecommerce
composer-project
Skeleton for Shopware projects with composer
Stars: ✭ 72 (+414.29%)
Mutual labels:  ecommerce
boxshop
Laravel ecommerce platform
Stars: ✭ 78 (+457.14%)
Mutual labels:  ecommerce
relic bazaar
A Retro Theme-based e-commerce app for antiques. #Hack20
Stars: ✭ 78 (+457.14%)
Mutual labels:  ecommerce
parasut-v4
Parasut Php Api V4
Stars: ✭ 50 (+257.14%)
Mutual labels:  composer-package
SyliusVendorPlugin
This is a Sylius Plugin that add vendors (brands) to your store. The vendors is an entity that sells products and are fully customizable by the admin.
Stars: ✭ 51 (+264.29%)
Mutual labels:  ecommerce

Packagist GitHub license Packagist

Logo

Billbee API

With this package you can implement the official Billbee API in your application.

Prerequisites

Install

You can add this package as composer dependency

$ composer require billbee/billbee-api

Instructions without composer

Official API Documentation

https://app.billbee.io/swagger/ui/index

Usage

Simply instantiate a client object for accessing the api:

<?php

use BillbeeDe\BillbeeAPI\Client;

$user = 'Your Billbee username';
$apiPassword = 'Your Billbee API Password'; // https://app.billbee.io/de/settings/api
$apiKey = 'Your Billbee API Key';

$client = new Client($user, $apiPassword, $apiKey);

Example: Retrieve a list of products

<?php
 
use BillbeeDe\BillbeeAPI\Client;

$user = 'Your Billbee username';
$apiPassword = 'Your Billbee API Password'; // https://app.billbee.io/de/settings/api
$apiKey = 'Your Billbee API Key';
 
$client = new Client($user, $apiPassword, $apiKey);

/** @var \BillbeeDe\BillbeeAPI\Response\GetProductsResponse $productsResponse */
$productsResponse = $client->products()->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);
}

Example: Batch requests

<?php

use BillbeeDe\BillbeeAPI\Client;
use BillbeeDe\BillbeeAPI\Response;

$user = 'Your Billbee username';
$apiPassword = 'Your Billbee API Password'; // https://app.billbee.io/de/settings/api
$apiKey = 'Your Billbee API Key';
 
$client = new Client($user, $apiPassword, $apiKey);
$client->enableBatchMode();
 
$client->products()->getProducts(1, 1); # Adds the request to the batch pool / returns null
$client->orders()->getOrders(1, 1); # Adds the request to the batch pool / returns null
$client->events()->getEvents(1, 1); # Adds the request to the batch pool / returns null
 
$results = $client->executeBatch(); # Results contain all responses in the added order
 
/** @var Response\GetProductsResponse $productsResult */
$productsResult = $results[0];
 
/** @var Response\GetOrdersResponse $ordersResult */
$ordersResult = $results[1];
 
/** @var Response\GetEventsResponse $eventsResult */
$eventsResult = $results[2];

Testing

Run phpunit

Contributing

Feel free to fork the repository and create pull-requests

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].