PHPackages                             tmarois/baseify-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. tmarois/baseify-php-sdk

AbandonedArchivedPackage[API Development](/categories/api)

tmarois/baseify-php-sdk
=======================

Baseify API - PHP SDK

v1.0.8(7y ago)154PHPPHP &gt;=7.0

Since Jul 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tmarois/baseify-php-sdk)[ Packagist](https://packagist.org/packages/tmarois/baseify-php-sdk)[ Docs](https://github.com/tmarois/baseify-php-sdk)[ RSS](/packages/tmarois-baseify-php-sdk/feed)WikiDiscussions 1.0 Synced 2w ago

READMEChangelog (9)Dependencies (4)Versions (11)Used By (0)

baseify-php-sdk
===============

[](#baseify-php-sdk)

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

Installation:
-------------

[](#installation)

[Composer](http://getcomposer.org/) to install package.

Use `composer require tmarois/baseify-php-sdk`

Configuration Usage:
--------------------

[](#configuration-usage)

```
$baseify = (new Baseify('YOUR_CLIENT_KEY'))->productSearch([
    'domain' => 'yourdomain.com'
]);

// set the users IP address
// This allows the API to return the proper results
$baseify->user()->set('ip',$testIp);

// set the user agent (also a requirement)
$baseify->user()->set('ua',$testAgent);

// how many items do you want to limit this request to
$baseify->filter()->set('limit',10);
```

Query Usage:
------------

[](#query-usage)

```
// send in the query request
$results = $baseify->query('car chargers');

// get a list of all the products returned
$products = $results->getProducts();

// count how many products are returned
$products->count();

// get a list of the stores in the results
$stores = $results->getStores();

// get a list of the brands in the results
$brands = $results->getBrands();

// get a list of the brands in the results
$categories = $results->getCategories();
```

Results:
--------

[](#results)

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

MethodDescription`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 resultsProduct Collection:
-------------------

[](#product-collection)

The `getProducts()` returns results using the `Collection` object from [basephp\\support](https://github.com/basephp/support), here are the highlighted useful methods.

MethodDescription`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:
----------

[](#resources)

- [Baseify Documentation](https://www.baseify.com/knowledgebase/developers/)
- [BasePHP Support](https://github.com/basephp/support)
- [Packagist](https://packagist.org/packages/tmarois/baseify-php-sdk)

Contributions
-------------

[](#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
-------

[](#license)

baseify-php-sdk is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Recently: every ~23 days

Total

10

Last Release

2771d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2489333?v=4)[Tim Marois](/maintainers/timothymarois)[@timothymarois](https://github.com/timothymarois)

---

Top Contributors

[![timothymarois](https://avatars.githubusercontent.com/u/2489333?v=4)](https://github.com/timothymarois "timothymarois (44 commits)")

---

Tags

baseifyphp-sdkbaseify

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tmarois-baseify-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/tmarois-baseify-php-sdk/health.svg)](https://phpackages.com/packages/tmarois-baseify-php-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
