Download the PHP package denizgolbas/laravel-tcmb-gold without Composer

On this page you can find all versions of the php package denizgolbas/laravel-tcmb-gold. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-tcmb-gold

Laravel TCMB XML Gold Rates

Latest Version on Packagist Total Downloads Run Tests License

TCMB (Türkiye Cumhuriyet Merkez Bankası) Reeskont Kurları XML servisinden altın fiyatlarını çeken Laravel paketi.

⚠️ Önemli Bilgi

Bu paket TCMB'nin saatlik yayınladığı Reeskont Kurları XML servisini kullanır. Bu serviste sadece alış fiyatı bulunur, satış fiyatı yoktur.

🏦 TCMB XML'inde Dönen Altın Türleri

TCMB Reeskont Kurları XML servisinde aşağıdaki altın türleri bulunmaktadır:

Kod Açıklama Birim Kullanım Alanı
XAU 24 Ayar Altın 1 TCMB tarafından belirlenen altın fiyatı
XAS SAF (Has) Altın 1 gram Türkiye'deki kuyumculuk sektöründe referans fiyat

XAU vs XAS Farkı

XML'de Dönen Tüm Alanlar

TCMB XML'inde her altın türü için aşağıdaki bilgiler döner:

Not: TCMB Reeskont Kurları XML'inde sadece alış fiyatı bulunur, satış fiyatı yoktur.

🚀 Özellikler

📦 Kurulum

Config Dosyasını Publish Etme

Migration'ları Publish Etme (Opsiyonel)

🛠️ Kullanım

Temel Kullanım

Belirli Altın Türünü Alma

Belirli Bir Tarih İçin

Dönen Veri Yapısı

⚙️ Konfigürasyon

config/tcmb-gold.php:

🔗 XML Servisi Hakkında

URL Formatı

TCMB XML servisi şu URL formatını kullanır:

URL Yapısı:

Örnek URL'ler:

Canlı Test: Tarayıcınızda veya terminal'de test edebilirsiniz:

XML Yapısı

TCMB XML'inde dönen tam yapı:

XML'de Dönen Tüm Altın Türleri:

Not: TCMB Reeskont Kurları XML'inde sadece bu iki altın türü bulunmaktadır. Diğer değerli metaller (gümüş, platin, paladyum) bu serviste yer almaz.

🧪 Testler

Matrix Test Kapsamı

PHP Laravel 10 Laravel 11
8.1 ❌ (PHP 8.2+ gerekli)
8.2
8.3

Not: Laravel 11 PHP 8.2 veya üzeri gerektirir, bu yüzden PHP 8.1 ile Laravel 11 test edilmez.

📄 Lisans

MIT

🙏 Teşekkürler


All versions of laravel-tcmb-gold with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package denizgolbas/laravel-tcmb-gold contains the following files

Loading the files please wait ...