Skip to content

Commit cf8a190

Browse files
Rename library from devcoder-xyz/php-dotenv to phpdevcommunity/php-dotenv and update namespaces
1 parent 2f24307 commit cf8a190

13 files changed

+90
-1831
lines changed

.phpunit.result.cache

-1
This file was deleted.

README.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# PHP-DotEnv
22

3-
[![Latest Stable Version](https://poser.pugx.org/devcoder-xyz/php-dotenv/v)](https://packagist.org/packages/devcoder-xyz/php-dotenv) [![Total Downloads](https://poser.pugx.org/devcoder-xyz/php-dotenv/downloads)](https://packagist.org/packages/devcoder-xyz/php-dotenv) [![Latest Unstable Version](https://poser.pugx.org/devcoder-xyz/php-dotenv/v/unstable)](//packagist.org/packages/devcoder-xyz/php-dotenv) [![License](https://poser.pugx.org/devcoder-xyz/php-dotenv/license)](https://packagist.org/packages/devcoder-xyz/php-dotenv)
4-
[![PHP Version Require](http://poser.pugx.org/devcoder-xyz/php-dotenv/require/php)](https://packagist.org/packages/devcoder-xyz/php-dotenv)
5-
6-
## Introduction
73
PHP-DotEnv is a lightweight PHP library designed to simplify the management of environment variables in your PHP applications. It provides an elegant solution for loading configuration values from a `.env` file into the environment variables accessible via `getenv()`, `$_ENV`, and `$_SERVER`. This documentation aims to guide you through the installation, usage, and features of PHP-DotEnv.
84

95
## Installation
@@ -12,7 +8,7 @@ To install PHP-DotEnv, you can use [Composer](https://getcomposer.org/), the dep
128

139
### Composer Require
1410
```bash
15-
composer require devcoder-xyz/php-dotenv
11+
composer require phpdevcommunity/php-dotenv
1612
```
1713

1814
## Requirements
@@ -41,7 +37,7 @@ After defining your environment variables, you can load them into your PHP appli
4137

4238
```php
4339
<?php
44-
use DevCoder\DotEnv;
40+
use PhpDevCommunity\DotEnv;
4541

4642
$absolutePathToEnvFile = __DIR__ . '/.env';
4743

@@ -106,4 +102,4 @@ NUMBER_LITERAL=0
106102

107103
## Conclusion
108104

109-
PHP-DotEnv offers a straightforward and efficient solution for managing environment variables in PHP applications. By providing automatic type conversion and customizable processors, it simplifies the process of loading and handling configuration values from `.env` files. Whether you're working on a small project or a large-scale application, PHP-DotEnv can help streamline your development process and ensure smooth configuration management. Explore its features, integrate it into your projects, and experience the convenience it brings to your PHP development workflow.
105+
PHP-DotEnv offers a straightforward and efficient solution for managing environment variables in PHP applications. By providing automatic type conversion and customizable processors, it simplifies the process of loading and handling configuration values from `.env` files. Whether you're working on a small project or a large-scale application, PHP-DotEnv can help streamline your development process and ensure smooth configuration management. Explore its features, integrate it into your projects, and experience the convenience it brings to your PHP development workflow.

composer.json

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
{
2-
"name": "devcoder-xyz/php-dotenv",
2+
"name": "phpdevcommunity/php-dotenv",
33
"description": "PHP-DotEnv is a lightweight PHP library designed to simplify the management of environment variables in your PHP applications.",
44
"type": "library",
55
"license": "MIT",
66
"authors": [
77
{
8-
"name": "F.Michel",
9-
"email": "[email protected]"
8+
"name": "F. Michel",
9+
"homepage": "https://www.phpdevcommunity.com"
1010
}
1111
],
1212
"autoload": {
1313
"psr-4": {
14-
"DevCoder\\": "src",
15-
"Test\\DevCoder\\": "tests"
14+
"PhpDevCommunity\\": "src",
15+
"Test\\PhpDevCommunity\\": "tests"
1616
}
1717
},
18-
"scripts": {
19-
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --testdox",
20-
"test:coverage": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --testdox --coverage-clover build/logs/clover.xml --coverage-html build/coverage"
21-
},
2218
"require": {
2319
"php": ">=7.4"
2420
},
21+
"minimum-stability": "alpha",
2522
"require-dev": {
26-
"phpunit/phpunit": "9.6.3"
23+
"phpdevcommunity/unitester": "^0.1.0@alpha"
2724
}
2825
}

0 commit comments

Comments
 (0)