Env A small PHP library to get environment details

Getting Started

Usage

Paths

View the API Documentation for this class

Once you’ve defined your root path you can get relative paths like so:

$cachePath = Env::path("cache");

There’s also a wrapper for realpath():

$imagePath = Env::realpath("cache/images/small");