PHPackages                             stajor/iherb-api - 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. stajor/iherb-api

ActiveLibrary[API Development](/categories/api)

stajor/iherb-api
================

iHerb Affiliate

1.0.0(7y ago)4164[1 issues](https://github.com/Stajor/iherb-api/issues)MITPHPPHP &gt;=7.1

Since Oct 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Stajor/iherb-api)[ Packagist](https://packagist.org/packages/stajor/iherb-api)[ RSS](/packages/stajor-iherb-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

iHerb API
=========

[](#iherb-api)

This PHP library will help you to interactive with iHerb.com.

Installation
------------

[](#installation)

Add this line to your application's composer.json:

```
{
    "require": {
        "stajor/iherb-api": "^1.0"
    }
}
```

and run `composer update`

**Or** run this command in your command line:

```
$ composer require stajor/iherb-api

```

Usage
-----

[](#usage)

```
$api = new \iHerb\API();
$collection = $api->getTopSellers();
print_r($collection->toArray());
```

Contributing
------------

[](#contributing)

Bug reports and pull requests are welcome on GitHub at . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

License
-------

[](#license)

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2777d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/abca7e92a44a5866cdab6363f8f2f65b8552719fcade9c044e85c24d83eaa1a3?d=identicon)[Stajor](/maintainers/Stajor)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stajor-iherb-api/health.svg)

```
[![Health](https://phpackages.com/badges/stajor-iherb-api/health.svg)](https://phpackages.com/packages/stajor-iherb-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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