PHPackages                             somin-team/somin-api-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. somin-team/somin-api-sdk

ActiveLibrary[API Development](/categories/api)

somin-team/somin-api-sdk
========================

SoMin API SDK is a PHP library for making calls to SoMin API.

1.5.4(7y ago)11.3kApache-2.0PHPPHP &gt;=5.6.0

Since Feb 5Pushed 7y ago3 watchersCompare

[ Source](https://github.com/bbridge-team/somin-sdk-php)[ Packagist](https://packagist.org/packages/somin-team/somin-api-sdk)[ Docs](https://github.com/bbridge-team/somin-sdk-php)[ RSS](/packages/somin-team-somin-api-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (12)Used By (0)

somin-sdk-php
=============

[](#somin-sdk-php)

SoMin API SDK for Somin API is a PHP library for making calls to [Somin API](http://dev.somin.ai). The library enables users for making API calls from PHP 5.6 or high.

[![Build Status](https://camo.githubusercontent.com/b4047d4341aacc0b1eda3f48669f91f29f44a2950eac7c4d1e995cb63e3f06bc/68747470733a2f2f7472617669732d63692e6f72672f626272696467652d7465616d2f736f6d696e2d73646b2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bbridge-team/somin-sdk-php)

Example
-------

[](#example)

```
$requester = new SimpleHttpRequester();
$authorizer = new CredentialsAuthorizer($requester);

$tokenRequest = (new UserCredential())
                        ->setUsername(USERNAME)
                        ->setPassword(PASSWORD);

// Call authorization method
$tokenResponse = $authorizer->auth($tokenRequest);

// Set bearer token to current HttpRequester
$requester->setBearer($tokenResponse->getToken());

$request = (new UserProfileData())
             ->setTexts([
                 "Hello friend!",
                 "The weather is good :)"
             ])
             ->setImageURLs([
                 "https://pbs.twimg.com/media/C6ij4CLUwAAxu9r.jpg",
                 "https://pbs.twimg.com/media/C6jO3UiVoAQYc_8.jpg"
             ])
             ->setLang('en')
             ->withAgeGroup()
             ->withEducationLevel()
             ->withGender()
             ->withIncome()
             ->withOccupation()
             ->withRelationship();

$userProfiler = new IndividualUserProfiler($requester);

// Call individual user profile method and get request id
$requestResponse = $userProfiler->predictIndividualUserProfile($request);

$request = (new ResponseRequest())
            ->setRequestID($requestResponse->getRequestId())
            ->setResponseClass(IndividualUserProfile::class);

// Call method for check current request status
$commonProcessor = new CommonProcessor($this->requester);

$numAttempts = 10;
$response = null;   /** @var $response IndividualUserProfile */

while($numAttempts-- > 0 && ($response == null || $response->getHttpCode() !== 200)) {
    sleep(self::RESPONSE_WAIT_TIME_SECONDS);
    $response = $commonProcessor->response($request);
}

var_dump($response);
```

Testing
-------

[](#testing)

- Install [PHP Unit](https://phpunit.de/)
- Set environment variables **TEST\_USERNAME** and **TEST\_PASSWORD** to SoMin API user name and password, respectively.
- run **phpunit** in main directory

API Documentation
-----------------

[](#api-documentation)

More information can be found on the [SoMin developer web site](http://dev.somin.ai).

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

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 ~29 days

Total

11

Last Release

2773d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1158060?v=4)[somin](/maintainers/somin)[@somin](https://github.com/somin)

---

Top Contributors

[![casskir](https://avatars.githubusercontent.com/u/8754334?v=4)](https://github.com/casskir "casskir (60 commits)")

---

Tags

apisdksocialsominmultimedia analytics

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/somin-team-somin-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/somin-team-somin-api-sdk/health.svg)](https://phpackages.com/packages/somin-team-somin-api-sdk)
```

###  Alternatives

[pgrimaud/instagram-user-feed

This is a scraper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.

943664.4k5](/packages/pgrimaud-instagram-user-feed)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

46784.5k5](/packages/deepseek-php-deepseek-php-client)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

138106.8k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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