Download the PHP package tmarois/baseify-php-sdk without Composer

On this page you can find all versions of the php package tmarois/baseify-php-sdk. 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 baseify-php-sdk

baseify-php-sdk

This SDK is used for the baseify.com Publisher API for Product Search.

Installation:

Composer to install package.

Use composer require tmarois/baseify-php-sdk

Configuration Usage:

Query Usage:

Results:

Using the query() method returns Baseify\Api\ProductSearch\Results

Method Description
getRaw() Get the raw JSON results
getStatus() Get the status of results
getMessage() Get the status message of results
getEndpoint() Get the full API URL Request
getStores() Get an array of stores (pulled from products)
getBrands() Get an array of brands (pulled from products)
getCategories() Get an array of categories (pulled from products)
getCategoryWithIds() Get the categories and the category ids
getProducts() Get products returned as a Collection object
toArray() Get an array of entire results

Product Collection:

The getProducts() returns results using the Collection object from basephp\support, here are the highlighted useful methods.

Method Description
all() Get all items in collection
has($key) Returns true if the parameter is defined.
get($key, $default) Get the specified value.
first() Get the first item from the collection.
last() Get the last item from the collection.
shuffle() Shuffle the items in the collection.
slice() Slice the underlying collection array.
reverse() Reverse items order.
remove($key) Removes a item.
count() Returns the number of items.
take($limit) Take the first or last {$limit} items.
map($callable) Run a map over each of the items.
pluck($value, $key) Get the values of a given key.
random($number) Get one or a number of items randomly.
sort($callable) Sort through each item with a callback..
filter($callable) Run a filter over each of the items.
where($key, $operator, $value) Filter items by the given key value pair.
whereIn($key, $values) Filter items by the given key value pair.
push($value) Push an item onto the end of the collection.
pull($value) Get and remove an item from the collection.
put($key, $value) Put an item in the collection by key.
toArray() Get the collection of items as a plain array.
toJson() Get the collection of items as JSON.

Resources:

Contributions

Anyone can contribute to the baseify-php-sdk project. Please do so by posting issues when you've found something that is unexpected or sending a pull request for improvements.

License

baseify-php-sdk is open-sourced software licensed under the MIT license.


All versions of baseify-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
guzzlehttp/guzzle Version ^6.3
basephp/support Version 1.*
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 tmarois/baseify-php-sdk contains the following files

Loading the files please wait ....