PHP Classes

File: example/index.php

Recommend this page to a friend!
  Classes of EnvKey   EnvKey PHP   example/index.php   Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: EnvKey PHP
Load environment variables from the EnvKey service
Author: By
Last change:
Date: 11 months ago
Size: 190 bytes
 

Contents

Class file image Download
<?php
 
require_once __DIR__ . '/vendor/autoload.php'; // Include the Composer autoloader

 
$databaseUrl = getenv('DATABASE_URL');

  echo
"The value of DATABASE_URL is: $databaseUrl";

?>