Download the PHP package hscore/hsapi without Composer

On this page you can find all versions of the php package hscore/hsapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package hsapi

HSApi

In Hifi Station Kft we decided to create a new automation system for our B2B partners. You can connect your webshop, ecommerce, or any other system to our API.

We won't be able to write your backend code but we will help you to create the connection.

The api does not support OpenCart/Magento/PrestaShop/WooCommerce/Unas/Shoprenter/etc. You need to write your own code to connect to your system.

Requirements

Features

Installation

"hscore/hsapi": "*"

or run

composer require hscore/hsapi

Note that the vendor folder and the vendor/autoload.php script are generated by Composer; they are not part of the api.

Alternatively, if you're not using Composer, you can download HSApi as a zip file, then copy the contents of the HSApi folder into one of the include_path directories specified in your PHP configuration and load class file manually:

Authentication

In order to use the API you need to authenticate. You can do this by using the authenticate method.

We prepared a simlified authentication method.

You can use the authentication credentails in the following way: https://api.hifi-station.hu/v2/products?username=USERNAME&password=PASSWORD&api_key=API_KEY In the email that we send you after a successful registration copy the data and change the UPPERCASE strings. You can change the output (JSON or XML) by adding the extension to "products". https://api.hifi-station.hu/v2/products.xml or json

Output format

We provide two output formats: JSON and XML. To change the output format, use the setOutputFormat method.

Use this method before the send() method.

Usage

Other informations

Note, that the API is not stable yet. In the result the stock tag is not always correct. If we have more than 10 product in stock the value always will be 10.

Functions

send() return the response in the format you specified.

authenticate(string $username, string $password, string $api_key) authenticate the request.

setOutputFormat(string $type) set the output format.

public $disablePrettyHeader = false; disable the php header() function.

Security

Please submit bug reports, or you found a mistake in the docs, or want to add something suggestions create a pull request or go ahead and create an issue at Github issue tracker

Disclaimer

This is an open source project. We are not responsible for any damage caused by this software. If you want to update the prices of the product automatically, please note that it may differ from the price you offer.


All versions of hsapi with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-openssl Version *
ext-simplexml Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hscore/hsapi contains the following files

Loading the files please wait ....