PHPackages                             murilobd/google-finance-stocks - 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. murilobd/google-finance-stocks

AbandonedArchivedLibrary

murilobd/google-finance-stocks
==============================

This package will get from Google Finance all infos from a given stock (ex: BVMF:PETR4)

v1.0.1(8y ago)1712[1 issues](https://github.com/murilobd/google-finance-stocks/issues)MITPHP

Since Feb 5Pushed 8y ago2 watchersCompare

[ Source](https://github.com/murilobd/google-finance-stocks)[ Packagist](https://packagist.org/packages/murilobd/google-finance-stocks)[ RSS](/packages/murilobd-google-finance-stocks/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

Google Finance Stocks for Laravel
=================================

[](#google-finance-stocks-for-laravel)

This composer package will get from Google Finance all infos from a given stock (ex: BVMF:PETR4, NASDAQ:GOOGL, ...). Built to use with Laravel 5.x.

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

[](#instalation)

Begin by pulling in the package through Composer.

```
composer require murilobd/google-finance-stocks

```

If you're using Laravel &gt;= 5.5, it's all done. If not, include the service provider and alias in your `config/app.php`:

```
'providers' => [
	Murilobd\GoogleFinanceStocks\GoogleFinanceStocksServiceProvider::class,
]
...
'aliases' => [
	'GoogleFinanceStocks' => Murilobd\GoogleFinanceStocks\GoogleFinanceStocksFacade::class
]
```

### Usage

[](#usage)

Whenever you want a stock informations, just call:

```
$exchange = 'BVMF';
$stock = 'PETR4';
$stock = GoogleFinanceStocks::requestStockInfos($exchange, $stock);
```

Mapped attributes are:

- ***symbol***: Symbol
- ***exchange***: Exchange
- ***name***: Company name
- ***price***: Last price in latest trading day
- ***variation***: Last variation in percentage in latest trading day
- ***low***: Lowest price in lastest trading day
- ***high***: Highest price in lastest trading day
- ***low52***: Lowest price in last 52 weeks
- ***high52***: Highest price in last 52 weeks
- ***open***: Open price in latest trading day
- ***volume***: Number of shares traded in lastest trading day
- ***avarage\_volume***: Avarage of shares traded in last 30 days
- ***market\_cap***: Total value of a company in the stock market. It is generally calculated by multiplying the shares outstanding by the current share price.
- ***price\_to\_earning***: Price to earning ratio
- ***dividend***: Divident per share paid to shareholders in the most recent quarter
- ***dividend\_yeld***: Dividend yeld
- ***earnings\_per\_share***: Earnings per share. The net income over the last four quarters divided by the shares outstanding.
- ***shares***: Shares outstanding. The number of shares held by investors and company insiders, excluding dilutive securities such as non-vested RSUs and unexercised options.

#### Example:

[](#example)

```
// Show stock symbol, company name and the lowest value from latest trading day
$stock = GoogleFinanceStocks::requestStockInfos('BVMF', 'PETR4');
echo $stock->symbol;
echo $stock->name;
echo $stock->low;
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~0 days

Total

2

Last Release

3019d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fef515f925a720086c9114b06ce147ad06831f8e1b45bea958788372ca546be?d=identicon)[murilobd](/maintainers/murilobd)

---

Top Contributors

[![murilobd](https://avatars.githubusercontent.com/u/4275011?v=4)](https://github.com/murilobd "murilobd (1 commits)")

---

Tags

googlefinancestocksbolsa de valor

### Embed Badge

![Health badge](/badges/murilobd-google-finance-stocks/health.svg)

```
[![Health](https://phpackages.com/badges/murilobd-google-finance-stocks/health.svg)](https://phpackages.com/packages/murilobd-google-finance-stocks)
```

###  Alternatives

[google/apiclient

Client library for Google APIs

9.8k191.4M997](/packages/google-apiclient)[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[stichoza/google-translate-php

Free Google Translate API PHP Package

2.0k7.6M124](/packages/stichoza-google-translate-php)

PHPackages © 2026

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