PHPackages                             gieroj/barchart-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. gieroj/barchart-api

ActiveLibrary[API Development](/categories/api)

gieroj/barchart-api
===================

Api integration with barchart stock market data.

00[1 issues](https://github.com/gieroj/barchart-api/issues)[1 PRs](https://github.com/gieroj/barchart-api/pulls)PHPCI failing

Since May 26Pushed 3w ago1 watchersCompare

[ Source](https://github.com/gieroj/barchart-api)[ Packagist](https://packagist.org/packages/gieroj/barchart-api)[ RSS](/packages/gieroj-barchart-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

barchart-api
============

[](#barchart-api)

PHP package integration with [Barchart API](https://www.barchart.com/ondemand/api) stock market data.

Instalation
-----------

[](#instalation)

To use repository add to your composer.json:

```
"require": {
	"gieroj/barchart-api": "dev-master"
},
"repositories": [
    {
        "type": "vcs",
    	"url": "https://github.com/gieroj/barchart-api"
	}
]

```

and then

```
composer install

```

If you are using Laravel version older than 5.7 or any other Framework then you need to update your provider's list:

```
'providers' => [
    // Add this on the end of list providers
    Gieroj\BarchartApi\BarchartApiServiceProvider::class,
]

```

How to use it
-------------

[](#how-to-use-it)

First, we need to declare that we will use this package:

```
use Gieroj\BarchartApi\BarchartApi;

```

Now we are able to call API. For example to getQuote:

```
$barchart = new BarchartApi(env('BARCHART_KEY'), env('BARCHART_URL'));
$symbol = 'DRW';
$quote = $barchart->getQuote($symbol)->getResponse();

```

We can actually call to all available API from barchart. Lets call getHistory but we will use getCustom function to do that, in that way even if I did not cover specific endpoint you are still able to call to it.

```
$barchart = new BarchartApi(env('BARCHART_KEY'), env('BARCHART_URL'));
$options = ['symbol' => 'GOOG', 'type' => 'daily', 'startDate' => '2020-05-01'];
$response = $barchart->getCustom('getHistory', $options )->getResponse();

```

By changing query name and provide correct options we are able to call all available endpoints.

📈 enjoy

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance62

Regular maintenance activity

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2331716?v=4)[Pablo Gieroj](/maintainers/gieroj)[@gieroj](https://github.com/gieroj)

---

Top Contributors

[![gieroj](https://avatars.githubusercontent.com/u/2331716?v=4)](https://github.com/gieroj "gieroj (6 commits)")

### Embed Badge

![Health badge](/badges/gieroj-barchart-api/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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