PHPackages                             zhan3333/sturents-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. zhan3333/sturents-api

ActiveLibrary[API Development](/categories/api)

zhan3333/sturents-api
=====================

1.2.1(8y ago)013MITPHPPHP &gt;=5.5.0

Since Feb 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zhan3333/api-php)[ Packagist](https://packagist.org/packages/zhan3333/sturents-api)[ RSS](/packages/zhan3333-sturents-api/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (9)Used By (0)

StuRents API Helper
===================

[](#sturents-api-helper)

Install using composer:

```
php composer.phar require sturents/api

```

#### Wait, what's Composer?

[](#wait-whats-composer)

Composer is the de-facto package manager for PHP projects. If you haven't used it before it is very simple to set up.

1. Visit the [Composer download page](https://getcomposer.org/download/) and follow instructions to download composer into your project root.
2. You should now have a file called `composer.phar` in your project root. You can run [various commands](https://getcomposer.org/doc/03-cli.md) using this file.
3. Start by running `php composer.phar init` to create your `composer.json` file. This file stores all your project configuration and dependencies.
4. Now either run the command at the top of the readme to install the StuRents API, or add `"sturents/api": "*"` to the `"require"` object inside your `composer.json` file.

To use Composer dependencies inside a PHP file is simple - just the following to the top of your file:

```
require_once __DIR__.'/vendor/autoload.php';

```

Now you can create or use any object without having to worry about requiring its files - Composer and PHP's autoloader will handle that for you.

Send a property to StuRents
---------------------------

[](#send-a-property-to-sturents)

```
$data = [
    ... // see https://sturents.com/software/developer/house-create
];
$create_house = new \Sturents\Api\CreateOrUpdateHouse(LANDLORD_ID, API_KEY);
$create_house->setJson($data);
try {
    $create_house->send();
}
catch (\Exception $e){
   echo "A problem happened: ".$e->getMessage();
}

var_dump($create_house->responseJson()->isSuccess()); // true if request succeeded

$affected_id = $create_house->responseAffectedProperty(); // outputs an integer

```

Fetch data from StuRents
------------------------

[](#fetch-data-from-sturents)

```
$fetch_houses = new \Sturents\Api\FetchHouses(LANDLORD_ID, PUBLIC_KEY);
try {
    $fetch_houses->fetchAll();
    $properties = $fetch_houses->getProperties();
}
catch (\Exception $e){
   echo "A problem happened: ".$e->getMessage();
}

echo count($properties) // echo, e.g. 1

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 88% 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 ~78 days

Recently: every ~84 days

Total

8

Last Release

3197d ago

Major Versions

0.3.0 → 1.0.02016-12-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f1fc4b7abc91376754a4da3afc7007aa8aefef41c6995fe69eeb972adef2ad0?d=identicon)[zhan3333](/maintainers/zhan3333)

---

Top Contributors

[![M1ke](https://avatars.githubusercontent.com/u/1226123?v=4)](https://github.com/M1ke "M1ke (22 commits)")[![zhan3333](https://avatars.githubusercontent.com/u/15830778?v=4)](https://github.com/zhan3333 "zhan3333 (2 commits)")[![supratims](https://avatars.githubusercontent.com/u/3732209?v=4)](https://github.com/supratims "supratims (1 commits)")

### Embed Badge

![Health badge](/badges/zhan3333-sturents-api/health.svg)

```
[![Health](https://phpackages.com/badges/zhan3333-sturents-api/health.svg)](https://phpackages.com/packages/zhan3333-sturents-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)
