PHPackages                             pedrazzi/cotacoes-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. pedrazzi/cotacoes-api

ActiveLibrary[API Development](/categories/api)

pedrazzi/cotacoes-api
=====================

API de Cotações em php

v1.0(3y ago)014MITPHP

Since Oct 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pedrazzi/cotacoes-api)[ Packagist](https://packagist.org/packages/pedrazzi/cotacoes-api)[ RSS](/packages/pedrazzi-cotacoes-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

cotacoes-api
============

[](#cotacoes-api)

Biblioteca `PHP` para consulta dos dados da API [AwesomeAPI](https://docs.awesomeapi.com.br/api-de-moedas).

Instalação
----------

[](#instalação)

Execute o seguinte comando para instalar esta biblioteca:

```
$ composer require pedrazzi/cotacoes-api
```

Como utilizar
-------------

[](#como-utilizar)

Você deve adicionar o autoload.php do composer no seu arquivo PHP.

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

Documentação
------------

[](#documentação)

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

use Pedrazzi\Cotacoes\Cotacoes;

// instancia a classe de cotações
$quote = new Cotacoes();

// lista completa de combinações
$combinacoes = $quote->available();

// lista completa com nomes das moedas
$completa = $quote->available(true);

// Retorna a última ocorrência da cotação: USD-BRL
$lastUSDBRL = $quote->last('USD-BRL');

// Retorna a última ocorrência das cotações: USD-BRL,EUR-BRL,BTC-BRL
$lastUSDBRLEURBRLBTCBRL = $quote->last('USD-BRL,EUR-BRL,BTC-BRL');

// Retorna o fechamento dos últimos dias da cotação: USD-BRL
$daily = $quote->daily('USD-BRL', 15);

// Retorna as 100 últimas cotações de USD-BRL
$sequencia = $quote->sequencia('USD-BRL', 10);
```

### Legendas

[](#legendas)

keyLabelbidCompraaskVendavarBidVariaçãopctChangePorcentagem de VariaçãohighMáximolowMínimo

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1309d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/194609ad197c57630156ad6854fe1fa1b85adc1cd4d7fb4cc0bd5d7e10b506e9?d=identicon)[pedrazzi](/maintainers/pedrazzi)

---

Top Contributors

[![pedrazzi](https://avatars.githubusercontent.com/u/5161568?v=4)](https://github.com/pedrazzi "pedrazzi (3 commits)")

---

Tags

phpapieurodolarcotaçõesmoedas

### Embed Badge

![Health badge](/badges/pedrazzi-cotacoes-api/health.svg)

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

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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