Giter Site home page Giter Site logo

exchangerateapi's Introduction

ExchangeRateAPI

모든 나라의 환전율을 불러옵니다.


👨‍💻 Contributors

송기호(GodVas)


💬 소스 분석

  • 쉽게 클래스를 불러올 수 있습니다.
include "ExchangeRateLoader.php";

$class = new ExchangeRateLoader();
  • 만약 기록(Logger)이 활성화 되있다면 타임존 설정과 키 값 연결 등등.. 연결 부분에서 출력을 해줍니다.

  • API 연결을 위한 현재 날짜를 호출할 수 있습니다.
$class->getSearchDate();

  • API 연결 주소를 설정값으로 변환 후 호출할 수 있습니다.
$class->getVerifyURL();

  • API 주소로 접근이 허용된다면 Json으로 변환 후 값을 출력할 수도 있습니다.
$class->toJson();

  • 나라 이름으로 해당 나라의 환전율 전체 데이터를 불러올 수 있습니다.
$class->getDataByCountry(string $name);

  • 나라 이름으로 불러온 데이터에서 원하는 부분을 추출할 수 있습니다.
$class->getSearchKeyByCountryData(string $name, string $key);

😄 만들게 된 계기

팀 프로젝트를 진행하여 각자 역할을 나눠서 맡게 된 PHP 언어를 이용한 API 호출 메서드 제작입니다.


⚡ 만든 소감

위 프로젝트를 진행하면서 소스에 조금 더 신경 쓰게 되었던 것 같습니다. 좋은 경험이였습니다.


업데이트 및 수정

2021-04-04 클래스를 받을때 바로 처리되도록 수정하였습니다.

exchangerateapi's People

Contributors

skh6075 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.