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.

00PHP

Since May 26Pushed 5y 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 today

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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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