Giter Site home page Giter Site logo

Comments (26)

vlucas avatar vlucas commented on May 2, 2024

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.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

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.

vlucas avatar vlucas commented on May 2, 2024

I am actually doing it right now :)

from phpdotenv.

vlucas avatar vlucas commented on May 2, 2024

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.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

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.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

Tagging a 1.1.1 release before moving v2 to the master might be a good idea too. :)

from phpdotenv.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

Ping. :)

from phpdotenv.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

Ping @vlucas. Laravel 5.1 needs to ship in the next few days. :)

from phpdotenv.

mamchenkov avatar mamchenkov commented on May 2, 2024

@GrahamCampbell you might consider an alternative - josegonzalez/php-dotenv. ;)

from phpdotenv.

vlucas avatar vlucas commented on May 2, 2024

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.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

Works for me. :)

from phpdotenv.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

Is 1.x being maintained for a long period of time then?

from phpdotenv.

sagikazarmark avatar sagikazarmark commented on May 2, 2024

@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.

tuupola avatar tuupola commented on May 2, 2024

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.

sagikazarmark avatar sagikazarmark commented on May 2, 2024

👍

from phpdotenv.

vlucas avatar vlucas commented on May 2, 2024

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.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

Is it possible to get 2.0.0 out today so laravel 5.1 can switch to it?

from phpdotenv.

vlucas avatar vlucas commented on May 2, 2024

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.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

Great. :)

from phpdotenv.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

"1.1" is a better branch name than "1.x" because composer will automatically understand it as being "1.1.x-dev".

from phpdotenv.

vlucas avatar vlucas commented on May 2, 2024

Just submitted PR #87 for community review. Will update the comments on it shortly.

from phpdotenv.

vlucas avatar vlucas commented on May 2, 2024

@GrahamCampbell deleted the 1.x branch and re-named it 1.1 :)

from phpdotenv.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

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.

vlucas avatar vlucas commented on May 2, 2024

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.

GrahamCampbell avatar GrahamCampbell commented on May 2, 2024

Ok. Sounds great. :)

from phpdotenv.

vlucas avatar vlucas commented on May 2, 2024

v2.0.0 has been tagged in a release: https://packagist.org/packages/vlucas/phpdotenv

🎆 💯

from phpdotenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.