Skip to content

janisgitendorfs/codelex-php-crypto

Repository files navigation

CryptoApp

CryptoApp is a terminal based PHP application that allows you to manage and trade cryptocurrencies with virtual money using data of your choice from one of three service - CoinMarketCap API, CoinPaprika API, CoinGecko API. You can list the top cryptocurrencies, search for specific cryptocurrencies by their ticker symbol, buy and sell cryptocurrencies, display the current state of your wallet, and view your transaction history. All transactions are saved - you can choose to save them in a JSON file or SQLite DB for persistence.

Features

  • Choose data source
  • Choose way of transaction data saving
  • List top cryptocurrencies
  • Search cryptocurrency by ticker symbol
  • Purchase cryptocurrency using virtual money (starting with $1000 as the base)
  • Sell cryptocurrency
  • Display the current state of your wallet based on transaction history
  • Display the transaction list

Installation

  1. Clone the repository:

    git clone https://github.com/smitens/CRYPTOAPP.git
    Install dependencies using Composer:
    composer install
     Create a .env file in the root directory and add your CoinMarketCap API key:
     APIKEY=your_api_key_here
     If you choose CoinPaprika or CoinGecko as datasource, no API key will be required
  2. Install the required dependencies using Composer:

    composer install
     Make sure you have transactions.json file created in main project directory and storage directory created with database.sqlite in it

Usage

Run the application using the following command:

php index.php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published