Comments (26)
I am backing out some of the stricter changes I made so that phpdotenv 2.0 will still be able to accept values with single quotes and no quotes at all if there are no spaces in the value. After that, I will do an official release.
from phpdotenv.
Cool. Is that likely to be done before the end of April, because we're likely to not accept dependency changes in Laravel 5.1 into May.
from phpdotenv.
I am actually doing it right now :)
from phpdotenv.
Changes done - Seeing as how you guys are very experienced staging major releases, what is the best way to go about this?
We currently have a v2
branch, and at some point, I want to move that to master
and tag an official v2.0.0 release. Are there any problems with just going ahead and doing that now that everything else (code and README) is ready? Are there any "gotchas" I should know about with composer?
from phpdotenv.
It's fine to move the code over to the master. I don't know if maintaining 1.1 is something you want to do. If so, make a "1.1" branch, and composer will automatically alias that to 1.1.x-dev for you, then you can alias the master to 2.0.x-dev, and everything will work fine. :) Otherwise, you can just maintain a single master branch, aliased to 2.0.x-dev. All the 1.x releases will still be available due to the tags either way. :)
from phpdotenv.
Tagging a 1.1.1 release before moving v2 to the master might be a good idea too. :)
from phpdotenv.
Ping. :)
from phpdotenv.
Ping @vlucas. Laravel 5.1 needs to ship in the next few days. :)
from phpdotenv.
@GrahamCampbell you might consider an alternative - josegonzalez/php-dotenv. ;)
from phpdotenv.
I have not abandoned this - just hesitant to push this out as 2.0 right now. I ran into some issues with the current Variable class architecture that I am not 100% happy with. I am also thinking I don't want to commit to supporting JSON and PHP loaders (currently in 2.0 branch), so I can keep this project very simple and shell-style only.
I will probably end up creating a new 2.0 branch that basically just updates phpdotenv to an instantiated object (non-static) with a proper PSR-4 namespaced loader with some re-vamped require checks, and then move some of the current stuff to a 2.1 release.
from phpdotenv.
Works for me. :)
from phpdotenv.
Is 1.x being maintained for a long period of time then?
from phpdotenv.
@mamchenkov Suggesting another package in a package's issue is not very nice.
Since 2.0 is coming up I think it is safe to create a 1.x branch for version 1.x and move v2 to master as @GrahamCampbell said. Even if you are not releasing right now. You can also tag pre-releases if you are not entirely happy with the current code and want to give a preview of the current state of the package. This way people can start to use it.
from phpdotenv.
Personally I think ditching json etc is a good idea. Environment is environment and those who understand why will use it. There already is gazillion of general config managers.
from phpdotenv.
👍
from phpdotenv.
Yep. That's the main motivation behind it - way too many people are thinking this is a general config replacement, asking for things like array support, etc. This is for sensitive config values only, not a full config replacement, and since it emulates Environment variables, it should only support setting variables the same way the shell does. Adding JSON, PHP, and YAML loaders will just confuse more people, and is beyond the scope of this library.
from phpdotenv.
Is it possible to get 2.0.0 out today so laravel 5.1 can switch to it?
from phpdotenv.
With my current idea for a 2.0, that should be possible. I am working on it now and will try my best!
from phpdotenv.
Great. :)
from phpdotenv.
"1.1" is a better branch name than "1.x" because composer will automatically understand it as being "1.1.x-dev".
from phpdotenv.
Just submitted PR #87 for community review. Will update the comments on it shortly.
from phpdotenv.
@GrahamCampbell deleted the 1.x branch and re-named it 1.1 :)
from phpdotenv.
It also might make sense to keep "2.0" as a "2.0" branch, and have the master aliased to "2.1". Laravel and symfony follow this approach. :)
from phpdotenv.
Okay. Good advice. I am still waiting on the results from Travis-CI, and I am going to be busy tonight. I will give this 24 hours for other comments from the community who are following this ticket, and then will publish a 2.0 tagged release tomorrow morning.
from phpdotenv.
Ok. Sounds great. :)
from phpdotenv.
v2.0.0 has been tagged in a release: https://packagist.org/packages/vlucas/phpdotenv
🎆 💯
from phpdotenv.
Related Issues (20)
- How to loads many env file, but the extension is .txt HOT 1
- Fatal error: Uncaught Error: Class "Dotenv\Dotenv" not found in HOT 1
- Performance degradation HOT 3
- Question - are there any 'builtin' variables? HOT 5
- Add reader with support for secret files HOT 1
- loading a .env file from outside the webspace seem to not work
- php 8.2 function getenv() not set HOT 1
- Please dont use $_SERVER HOT 1
- Load AWS system environments HOT 4
- symfony/dotenv Correlation HOT 1
- PHP version 7.4 HOT 1
- How does this help with php_value in .htaccess?
- Is there anyway to use sections created in the .env file? HOT 4
- Fatal error: Uncaught Error: Class "Dotenv\Dotenv" not found in HOT 2
- Can one use Heredoc syntax for multi-line strings? HOT 1
- Failed to parse dotenv file due to unexpected whitespace HOT 1
- Inconsistent result when calling `$this->dotenv->load()` multiple times from PHPUnit HOT 1
- Simple script doesn't work. HOT 3
- How should this library be used when multiple dependencies of a project require it?
- Nesting Variables do not work for me on a raspberry
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpdotenv.