Giter Site home page Giter Site logo

.env file not found about tatum-php HOT 6 CLOSED

tatumio avatar tatumio commented on July 26, 2024
.env file not found

from tatum-php.

Comments (6)

HighBreedTech avatar HighBreedTech commented on July 26, 2024

@placecodex sorry for very late response, if anyone is facing this same issue please do not hesitate to speak so i will tell you the solution to this

from tatum-php.

HighBreedTech avatar HighBreedTech commented on July 26, 2024

create .env file on your Root folder

put

# Enter TATUM API KEY for Mainnet and Testnet then set your network type to mainnet or testnet
TATUM_API_KEY=
TATUM_TESTNET_API_KEY=
NETWORK=testnet
LOG_EXCEPTION=true

from tatum-php.

HighBreedTech avatar HighBreedTech commented on July 26, 2024

thats all you need to solve this issue, the lib was said to disable creating of .env by default, so you have to do this manually the code in found inside example.env

from tatum-php.

HighBreedTech avatar HighBreedTech commented on July 26, 2024
Fatal error: Uncaught TatumException: You need to set your Network from your .env file! in C:\laragon\www\tatum\vendor\tatumio\tatum-php\src\Tatum.php:57 Stack trace: #0 C:\laragon\www\tatum\vendor\tatumio\tatum-php\src\Tatum.php(42): Tatum\Tatum->InitTatum() #1 C:\laragon\www\tatum\index.php(104): Tatum\Tatum->__construct() #2 [internal function]: {closure}()

according to this error above .env needed to be created inside

C:\laragon\www\tatum

and value need to be inserted then fill all value correctly with your tatum api key and network everything will work correctly

# Enter TATUM API KEY for Mainnet and Testnet then set your network type to mainnet or testnet
TATUM_API_KEY=
TATUM_TESTNET_API_KEY=
NETWORK=testnet
LOG_EXCEPTION=true

from tatum-php.

HighBreedTech avatar HighBreedTech commented on July 26, 2024

but normally the script create .example.env which contains the .env example value, if you have hidden files to not display on your pc, make it display hidden files then you will see the .example.env then create the .env yourself by copying the .example.env file content to it.

from tatum-php.

mark-jivko avatar mark-jivko commented on July 26, 2024

PHP SDK version 0.1.0 was archived.

from tatum-php.

Related Issues (11)

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.