masmaleki / msm-appointment by masmaleki

Simple appointment system integrated with google calendar api
38
1
2
Package Data
Maintainer Username: masmaleki
Maintainer Contact: masmaleki@gmail.com (Mohammad Sadegh Maleki)
Package Create Date: 2021-08-03
Package Last Update: 2021-09-07
Language: Blade
License: MIT
Last Refreshed: 2024-11-10 15:00:58
Package Statistics
Total Downloads: 38
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Appointment system

Simple appointment system integrated with google calendar api

Installation

Install this package via Composer.

composer require masmaleki/nbg-currency

Note: PHP 7.1.8 or later is required. For older versions, use ^1.2 version of this package.

Usage

The class is namespaced as Masmaleki\MSMAppointment\MSMAppointment, so use it like

use Masmaleki\NbgCurrency\NbgCurrency;

This package is very easy to use and has a few methods. Keep in mind that method names are not same as NBG's SOAP service. This package has more intuitive method names.

In addition, currencies are not case-sensitive here.

Methods

rate($currency)

Get the currency rate.

$currencies = 'USD,EUR';
$result = NbgCurrency::rate($currencies);
 foreach($result->GetCurrentRatesResult->CurrencyRate as $rate) {
    
            echo " --------------------\n";
            echo "Quantity: " . $rate->Quantity . "\n";
            echo "Rate:     " . floatval($rate->Rate) . "\n";
            echo "Diff:     " . floatval($rate->Diff) . "\n";
            echo "Code:     " . $rate->Code . "\n";
            echo "Name:     " . $rate->Name . "\n";
            echo "Date:     " . $rate->Date . "\n";
            echo "ValidFrom:     " . $rate->ValidFromDate . "\n"; 
    }
  
isSupported($currency)

Check if the currency is supported.

NbgCurrency::isSupported('usd'); // true
NbgCurrency::isSupported('lol'); // false

Keywords

ლარის კურსი, ეროვნული ბანკის გაცვლითი კურსი, ვალუტა, ლარის ვალუტის კურსი, laris kursi, laris valuta, lari currency, national bank of georgia, nbg

Thank you

Thanks of Levan Velijanashvili Nbg-Currency Package "Stichoza/nbg-currency"