Skip to content

The dotenv is library that will help you to manipulate enviroment variable from .env file.

Notifications You must be signed in to change notification settings

thetminnhtun/dotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP dotenv

Enviroment variable for PHP development

Installation with Composer

composer require thetminnhtun/dotenv

Usage

  • Create .env file and write following code
APP_NAME=ProjectName
APP_ENV=local
APP_URL=http://localhost
  • Create index.php file and write following code
<?php

include 'vendor/autoload.php';

dotenv();

echo env('APP_NAME');
  • install dovenv package by following command
composer require thetminnhtun/dotenv
  • done!

About

The dotenv is library that will help you to manipulate enviroment variable from .env file.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages