PHPackages                             maree/goldpricez - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. maree/goldpricez

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

maree/goldpricez
================

package to get metal prices like gold and silver with different currencies and measures

02PHP

Since Oct 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mohamedmaree/goldpricez)[ Packagist](https://packagist.org/packages/maree/goldpricez)[ RSS](/packages/maree-goldpricez/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Gold and Silver Prices
======================

[](#gold-and-silver-prices)

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

[](#installation)

You can install the package via [Composer](https://getcomposer.org).

```
composer require maree/goldpricez
```

Publish your goldpricez config file with

```
php artisan vendor:publish --provider="Maree\GoldPricez\GoldPricezServiceProvider" --tag="GoldPricez"
```

then change your GoldPricez config from config/GoldPricez.php file

```
    "API_KEY"  => "",
```

- create 'API\_KEY' from here

Usage
-----

[](#usage)

Get Prices
----------

[](#get-prices)

```
use Maree\GoldPricez\GoldPricez;
    $options = ['currency' => 'egp','measure'=>'gram','metal'=>'all'];
    $response = GoldPricez::getPrices($options);
```

notes
-----

[](#notes)

- to get only gold prices remove 'metal' option from options array

Response Examples
-----------------

[](#response-examples)

- in Success

```
  +"ounce_price_usd": "1667.72"
  +"gmt_ounce_price_usd_updated": "26-10-2022 04:30:02 pm"
  +"ounce_price_ask": "1667.72"
  +"ounce_price_bid": "1667.4"
  +"ounce_price_usd_today_low": "1649.67"
  +"ounce_price_usd_today_high": "1675.12"
  +"usd_to_egp": "19.7082"
  +"gmt_egp_updated": "26-10-2022 04:05:00 pm"
  +"ounce_in_egp": 32867.759304
  +"silver_ounce_in_egp": 385.8077232
  +"gram_to_ounce_formula": 0.0321
  +"gram_in_usd": 53.533812
  +"gram_in_egp": 1055.0550736584
  +"silver_gram_in_usd": 0.6283896
  +"silver_gram_in_egp": 12.38442791472
  +"silver_ounce_price_ask_egp": 386.1427626
  +"silver_ounce_price_bid_egp": 385.4726838
  +"silver_ounce_price_egp_today_low": 374.948505
  +"silver_ounce_price_egp_today_high": 390.3603174
```

- in Error

```
  +"status": false
  +"error": "This API key has reached the time limit for this method"
```

documentaion
------------

[](#documentaion)

-

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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://www.gravatar.com/avatar/0e88e6da55b1e4b359544c3e94fab80c6f73b3ce7ac82afd1d872a41aeb349fa?d=identicon)[mohamedmaree](/maintainers/mohamedmaree)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/maree-goldpricez/health.svg)

```
[![Health](https://phpackages.com/badges/maree-goldpricez/health.svg)](https://phpackages.com/packages/maree-goldpricez)
```

###  Alternatives

[kirschbaum-development/nova-inline-select

An inline select field for Laravel Nova apps.

95486.7k1](/packages/kirschbaum-development-nova-inline-select)[bdelespierre/php-kmeans

K-Means algorithm for PHP

91134.1k3](/packages/bdelespierre-php-kmeans)[paulzi/yii2-adjacency-list

Adjacency List Behavior for Yii2

68237.4k16](/packages/paulzi-yii2-adjacency-list)[ckfinder/ckfinder-symfony-bundle

CKFinder bundle for Symfony

42435.7k](/packages/ckfinder-ckfinder-symfony-bundle)[stevegrunwell/time-constants

A series of constants designed to make it easier to express time in PHP applications

28402.4k2](/packages/stevegrunwell-time-constants)[savvot/random

Deterministic pseudo-random generators library with dozens of useful functions and several sources of randomness

21243.7k5](/packages/savvot-random)

PHPackages © 2026

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