Recommend this page to a friend! |
Classes of Svetoslav Marinov | Orbisius PHP dotenv Parser Class | README.md | Download |
|
Downloadorbisius-dot-envOrbisius Dot Env is a free php class that allows you to read .env project files. It is just one file and doesn't have any dependencies. If the file is not passed the class will try to look for .env starting from Document Root, then checking if WordPress' const ABSPATH is defined and try one level up. The class is very efficient and doesn't currently use regular expressions at all. When it parses the key names are automatically uppercases them. It can define the values in environment, $_ENV, $_SERVER etc. and also define php constants if they haven't been defined just yet. This class was created by https://orbisius.com Usage NotesCheck the example.php file.
.env ExampleYou can comment your
Customizations / SupportWe do offer paid support & customizations. Contact us at https://orbisius.com/contact for more info. LicenseMIT |