PHPackages                             ortex/getyourbit - 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. ortex/getyourbit

ActiveLibrary

ortex/getyourbit
================

Getyourbit.com client

v0.0.1(8y ago)115MITPHPPHP &gt;=5.3

Since Aug 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ortexx/getyourbit-php)[ Packagist](https://packagist.org/packages/ortex/getyourbit)[ Docs](https://github.com/ortexx/getyourbit-php)[ RSS](/packages/ortex-getyourbit/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

[GetYourBit.com](https://getyourbit.com) client
===============================================

[](#getyourbitcom-client)

This library allows you to make requests easily.

Examples
--------

[](#examples)

```
require 'vendor/autoload.php';

use GetYourBit\Api;

// create an instance
$api = new Api('https://ip.getyourbit.com/');

// login
$api->auth('login', 'password');

// request without scrolling
$body = $api->request("/lookup/8.8.8.8", array('locale': 'en-US'));
var_dump($body['data']);

// request with scrolling
$result = $api->scroll("/find/", array(
    'size': 500,
    'query' => array(
        'country' => 'nepal'
    )
));
echo count($result);

//logout
$api->logout();
```

Api
---

[](#api)

### .auth($login, $password, $options=array())

[](#authlogin-password-optionsarray)

Login to the API. You can get **$login** and **$password** [on the site](https://getyourbit.com) after a subscription.
**$options** is [requests](https://github.com/rmccue/Requests) module options. You can also pass **headers** as option
Free services don't require authorization.

### .logout()

[](#logout)

Logout from the API. It gives an error without authorization before.

### .request($url, $data=array(), $options=array())

[](#requesturl-dataarray-optionsarray)

Request to the API without scrolling to get data.
It returns all response body as object.

### .scroll($url, $data=array(), $options=array(), $callback=null)

[](#scrollurl-dataarray-optionsarray-callbacknull)

### .scroll($url, $data=array(), $callback=null)

[](#scrollurl-dataarray-callbacknull)

### .scroll($url, $callback=null)

[](#scrollurl-callbacknull)

Request to the API with scrolling to get data. You can pass callback to control every chunk. You will get three arguments:

- **$body** - chunk response body
- **$chunkData** - chunk data
- **$fullData** - full data by the current chunk

It returns the full data at the end

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3191d ago

### Community

---

Top Contributors

[![ortexx](https://avatars.githubusercontent.com/u/13963535?v=4)](https://github.com/ortexx "ortexx (7 commits)")

### Embed Badge

![Health badge](/badges/ortex-getyourbit/health.svg)

```
[![Health](https://phpackages.com/badges/ortex-getyourbit/health.svg)](https://phpackages.com/packages/ortex-getyourbit)
```

PHPackages © 2026

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