Skip to content

Commit df4c4d0

Browse files
Updated funding information
1 parent c4a653e commit df4c4d0

File tree

2 files changed

+38
-23
lines changed

2 files changed

+38
-23
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: GrahamCampbell
2+
tidelift: "packagist/vlucas/phpdotenv"

README.md

Lines changed: 36 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,59 @@
11
PHP dotenv
22
==========
33

4-
Loads environment variables from `.env` to `getenv()`, `$_ENV` and
5-
`$_SERVER` automagically.
4+
Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
65

7-
This is a PHP version of the original [Ruby
8-
dotenv](https://github.com/bkeepers/dotenv).
6+
![Banner](https://user-images.githubusercontent.com/2829600/71564012-31105580-2a91-11ea-9ad7-ef1278411b35.png)
7+
8+
<p align="center">
9+
<a href="https://travis-ci.org/vlucas/phpdotenv"><img src="https://img.shields.io/travis/vlucas/phpdotenv/master.svg?style=flat-square" alt="Build Status"></img></a>
10+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-BSD%203--Clause-brightgreen.svg?style=flat-square" alt="Software License"></img></a>
11+
<a href="https://packagist.org/packages/vlucas/phpdotenv"><img src="https://img.shields.io/packagist/dt/vlucas/phpdotenv.svg?style=flat-square" alt="Total Downloads"></img></a>
12+
<a href="https://github.com/vlucas/phpdotenv/releases"><img src="https://img.shields.io/github/release/vlucas/phpdotenv.svg?style=flat-square" alt="Latest Version"></img></a>
13+
</p>
914

10-
[![Build Status](https://travis-ci.org/vlucas/phpdotenv.svg?branch=master)](https://travis-ci.org/vlucas/phpdotenv)
1115

1216
Why .env?
1317
---------
18+
1419
**You should never store sensitive credentials in your code**. Storing
1520
[configuration in the environment](http://www.12factor.net/config) is one of
1621
the tenets of a [twelve-factor app](http://www.12factor.net/). Anything that is
1722
likely to change between deployment environments – such as database credentials
18-
or credentials for 3rd party services – should be extracted from the
19-
code into environment variables.
20-
21-
Basically, a `.env` file is an easy way to load custom configuration
22-
variables that your application needs without having to modify .htaccess
23-
files or Apache/nginx virtual hosts. This means you won't have to edit
24-
any files outside the project, and all the environment variables are
25-
always set no matter how you run your project - Apache, Nginx, CLI, and
26-
even PHP 5.4's built-in webserver. It's WAY easier than all the other
27-
ways you know of to set environment variables, and you're going to love
28-
it.
23+
or credentials for 3rd party services – should be extracted from the code into
24+
environment variables.
25+
26+
Basically, a `.env` file is an easy way to load custom configuration variables
27+
that your application needs without having to modify .htaccess files or
28+
Apache/nginx virtual hosts. This means you won't have to edit any files outside
29+
the project, and all the environment variables are always set no matter how you
30+
run your project - Apache, Nginx, CLI, and even PHP 5.4's built-in webserver.
31+
It's WAY easier than all the other ways you know of to set environment
32+
variables, and you're going to love it!
2933

3034
* NO editing virtual hosts in Apache or Nginx
3135
* NO adding `php_value` flags to .htaccess files
3236
* EASY portability and sharing of required ENV values
3337
* COMPATIBLE with PHP's built-in web server and CLI runner
3438

39+
PHP dotenv is a PHP version of the original [Ruby
40+
dotenv](https://github.com/bkeepers/dotenv).
41+
3542

3643
Installation with Composer
3744
--------------------------
3845

39-
```shell
40-
curl -s http://getcomposer.org/installer | php
41-
php composer.phar require vlucas/phpdotenv
46+
Installation is super-easy via [Composer](https://getcomposer.org/):
47+
48+
```bash
49+
$ composer require vlucas/phpdotenv
4250
```
4351

44-
Or on Existing projects
52+
or add it by hand to your `composer.json` file.
4553

46-
```shell
47-
composer require vlucas/phpdotenv
48-
```
4954
Usage
5055
-----
56+
5157
The `.env` file is generally kept out of version control since it can contain
5258
sensitive API keys and passwords. A separate `.env.example` file is created
5359
with all the required environment variables defined except for the sensitive
@@ -270,3 +276,10 @@ Contributing
270276
6. Push to the branch (`git push origin my-new-feature`)
271277
7. Create new Pull Request
272278

279+
280+
For Enterprise
281+
--------------
282+
283+
Available as part of the Tidelift Subscription
284+
285+
The maintainers of `vlucas/phpdotenv` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-vlucas-phpdotenv?utm_source=packagist-vlucas-phpdotenv&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

0 commit comments

Comments
 (0)