PHPackages                             goapi-io/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. goapi-io/php-sdk

ActiveLibrary[API Development](/categories/api)

goapi-io/php-sdk
================

GOAPI.IO PHP SDK

1.0.3(1y ago)3531MITPHPPHP ^8.1

Since Oct 31Pushed 1y agoCompare

[ Source](https://github.com/goapi-io/php-sdk)[ Packagist](https://packagist.org/packages/goapi-io/php-sdk)[ RSS](/packages/goapi-io-php-sdk/feed)WikiDiscussions main Synced 2w ago

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

GOAPI.IO | PHP SDK
==================

[](#goapiio--php-sdk)

[![Test](https://github.com/goapi-io/php-sdk/actions/workflows/tests.yml/badge.svg)](https://github.com/goapi-io/php-sdk/actions/workflows/tests.yml)

This is the official GOAPI.IO SDK for PHP. It provides a set of functions and classes to interact with the Goapi API.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- GuzzleHttp library

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

[](#installation)

You can install the SDK using Composer. Run the following command in your project directory:

```
composer require goapi-io/php-sdk
```

Stock Market Data (IDX)
-----------------------

[](#stock-market-data-idx)

### Create Instance

[](#create-instance)

To use the SDK, you need to include the autoloader and create an instance of the main class. Here is an example:

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

$client = new GOAPI\IO\Client(['api_key' => 'your_api_key']);

$marketDataIDX = $client->createStockIDX();
```

### Get all listed companies

[](#get-all-listed-companies)

```
$companies = $marketDataIDX->getCompanies();
```

The `$companies` response is a [`Collection`](src/Collection.php) with [`GOAPI\IO\Resources\Stock\Company`](src/Resources/Stock/Company.php) items data.

### Get Detail Company Profile

[](#get-detail-company-profile)

```
$profile = $marketDataIDX->getProfile('BBCA');
```

### Get price by symbols

[](#get-price-by-symbols)

```
$prices = $marketDataIDX->getStockPrices(['AALI','BBCA']);
```

The `$prices` is a [`Collection`](src/Collection.php) with [`StockPrice`](src/Resources/Stock/StockPrice.php) items data.

### Get historical price by symbol

[](#get-historical-price-by-symbol)

```
// maximum date range (from-to) is 1 year.
$historicalPrice = $marketDataIDX->getHistoricalData('BBCA', '2023-10-01', '2023-10-20');
```

The `$historicalPrice` is a [`Collection`](src/Collection.php) with [`StockPrice`](src/Resources/Stock/StockPrice.php) items data.

### Get trending, top loser, top gainer

[](#get-trending-top-loser-top-gainer)

```
$trending = $marketDataIDX->getTrendingStocks();
$gainer = $marketDataIDX->getTopGainerStocks();
$loser = $marketDataIDX->getTopLoserStocks();
```

The `$trending`,`$gainer`, `$loser` is a [`Collection`](src/Collection.php) with [`StockPriceChange`](src/Resources/Stock/StockPriceChange.php) items data.

### Get Broker Summary

[](#get-broker-summary)

```
$brokerSum = $marketDataIDX->getBrokerSummary('BBCA', '2023-10-30');
```

The `$brokerSum` is a [`Collection`](src/Collection.php) with [`BrokerSummary`](src/Resources/Stock/BrokerSummary.php) items data.

### Get stock indicators

[](#get-stock-indicators)

```
$indicators = $marketDataIDX->getStockIndicators(page: 1, date: '2023-10-30');
```

The `$indicators` is a [`Collection`](src/Collection.php) with [`StockIndicator`](src/Resources/Stock/StockIndicator.php) items data.

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

[](#contributing)

If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on GitHub.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~122 days

Total

4

Last Release

599d ago

### Community

Maintainers

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

---

Top Contributors

[![daniwebdev](https://avatars.githubusercontent.com/u/38590276?v=4)](https://github.com/daniwebdev "daniwebdev (39 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/goapi-io-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/goapi-io-php-sdk/health.svg)](https://phpackages.com/packages/goapi-io-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).

232.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

1772.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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