Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

PHP + Dotenvx Examples

Comprehensive examples for encrypting secrets with Dotenvx in PHP.

Prerequisites

  • PHP 8.1+
  • Optional: a Dotenvx account

Run Example

dotenvx encrypt
dotenvx run -- php index.php

Quick Usage

<?php

echo 'HELLO: ' . (getenv('HELLO') ?: '') . PHP_EOL;

Project Structure

php-dotenvx-examples/
├── index.php
└── README.md