neputertech/nrb-forex-api
Composer 安装命令:
composer require neputertech/nrb-forex-api
包简介
Fetch Nepal Rastra Bank Forex Api
README 文档
README
The neputertech/nrb-forex-api package provides easy access to the forex rate fixed by Nepal Rastra Bank for different countries to Nepali Rupees(NPR).
Installation
Installation is straightforward, setup is similar to every other Laravel Packages.
1. Install via Composer
Begin by pulling in the package through Composer:
composer require neputertech/nrb-forex-api
2. Define the Service Provider and alias
Note: This package supports the new auto discovery features of Laravel >=5.5, so if you are working on a Laravel >=5.5 project, then your installation is complete, you can skip to step 3.
Add manually the service provider in your config/app.php file :
'providers' => [ // ... NeputerTech\NrbForexApi\NrbForexApiServiceProvider::class, ];
Add manually the facade in your config/app.php file :
'aliases' => [ // ... NeputerTech\NrbForexApi\Facades\NrbForexApi::class, ];
3. Publish Config File
To generate a config file type this command into your terminal:
php artisan vendor:publish --tag=nrb-forex-api
Usage
Using the NrbForexApi package, it's quite easy to get the current rate's.
We have the NeputerTech\NrbForexApi\NrbForexISO3 for ISO3 list of constants to be used.
Using with facade
- Getting the current rate for US Dollar to Nepali Rupees :
NrbForexApi::to(\NeputerTech\NrbForexApi\NrbForexISO3::US_DOLLAR)->convert(5); // Outputs : (Right now, US Dollar per unit === 122.24 NRS) 611.2
Using with helpers
- Getting the current rate for Indian Rupees to Nepali Rupees :
nrb_forex_convert(\NeputerTech\NrbForexApi\NrbForexISO3::INDIAN_RUPEE, 100) // Outputs : (Right now, Indian ruppee per 100 unit === 160 NRS) 160
TODO
- Get the list of rates for all available currencies provided by Nepal Rastra Bank
- More flexible Api
License
The MIT License (MIT). Please see License File for more information.
neputertech/nrb-forex-api 适用场景与选型建议
neputertech/nrb-forex-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 44 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 05 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「forex」 「nepal」 「nrb」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 neputertech/nrb-forex-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 neputertech/nrb-forex-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 neputertech/nrb-forex-api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A client for Barchart OnDemand market data.
Foreign exchange rates API Against The Naira
Laravel package for fetching and managing gold and silver prices with Filament integration
Alfabank REST API integration
This package makes the integration of Esewa payment gateway easier.
PHP Implementation of abokiFX API
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-19