PackageTrack
Sign in Get early access

oscarotero/env

Simple library to consume environment variables

v2.1.1 12M downloads/mo #1498 most downloaded on Packagist oscarotero/env

What this package is like to depend on

Last release 2 years ago

no release in 18 months

Release timing varies

gaps range from 4 months to 4.5 years

Nearly every release is documented

notes for 8 of 8 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

8 releases · first in 2015

0 releases in the last 12 months

see the full history below

Release timeline

8 releases · Dec 2015 to Dec 2024
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 8
  1. v2.1.1 03 Dec 2024
    Release notes Open source →
    Release notes

    Fixed

    • Support for PHP 8.4 [#12].
    Open source →
  2. v2.1.0 11 Jun 2020
    Release notes Open source →
    Release notes

    Added

    • New constant Env::USE_SERVER_ARRAY to get the values using $_SERVER array instead getenv() [#8].
    Open source →
  3. v2.0.0 03 Jun 2020
    Release notes Open source →
    Release notes

    Changed

    • This library is under the Env namespace instead the global. [#7]
    • The function env is under Env namespace and loaded automatically. [#7]
    • Included PHP 7 strict typing

    Removed

    • Support for PHP 5.x and PHP 7.0.
    Open source →
  4. v1.2.0 03 Apr 2019
    Release notes

    Added

    • New constant Env::LOCAL_FIRST to get first the values of locally-set environment variables [#6].

    Fixed

    • Added requirement for ctype extension in composer.json [#4].
    Open source →
    Release notes

    Added

    • New constant Env::LOCAL_FIRST to get first the values of locally-set environment variables [#6].

    Fixed

    • Added requirement for ctype extension in composer.json [#4].
    Open source →
  5. v1.1.0 17 Jul 2017
    Release notes

    Added

    • New constant Env::USE_ENV_ARRAY to get the values using $_ENV array instead getenv() #3.

    Fixed

    • Fixed test in php versions 5.2 and 7.x
    Open source →
    Release notes

    Added

    • New constant Env::USE_ENV_ARRAY to get the values using $_ENV array instead getenv() [#3].

    Fixed

    • Fixed test in php versions 5.2 and 7.x
    Open source →
  6. v1.0.2 08 May 2016
    Release notes

    Env::init() checks if the function env() exists, to prevent fatal errors on declare the function twice. If the funcion couldn't be included, returns false, otherwise returns true #1.

    Env::init(); //returns true
    Env::init(); //returns false
    Open source →
    Release notes

    Fixed

    • Env::init() checks if the function env() exists, to prevent fatal errors on declare the function twice. If the funcion couldn't be included, returns false, otherwise returns true [#1].
    Open source →
  7. v1.0.1 31 Dec 2015
    Release notes

    Fixed error on strip quotes to empty strings

    Open source →
    Release notes

    Fixed

    • Fixed error on strip quotes to empty strings
    Open source →
  8. v1.0.0 30 Dec 2015
    Release notes

    First stable version


    Previous releases are documented in github releases

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive