Download the PHP package 0.0.0/laravel-env-shim without Composer

On this page you can find all versions of the php package 0.0.0/laravel-env-shim. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-env-shim

Laravel 5.7 env() Polyfill

TravisCI Test Coverage

Benefits

Backstory

With the introduction of Laravel 5.8, they broke the essential env() function by changing it from reading from/writing to environment variables to only using the global $_SERVER array, which is totally useless in console-based apps.

See

Therefore, I took it upon myself to create this polyfill to ensure that the pre-5.8 behaviors remain intact.

Additionally, this is a great little utility function to use outside of Laravel-specic projects that also want to use the env() function.

It is specially configured with a 0.0.1 composer vendor and a AAutoloadFirst namespace, so that composer will always load it before it gets to Laravel. See https://github.com/composer/composer/issues/6768

The source code is lifted directly from the last version of Laravel 5.7.

As you can imagine, most of the copyright in this project belongs to Taylor Otwell, 2018.

It also includes 100% unit test code .

Installation

Via Composer

Usage

and

Use cases

PHPExperts\Laravel57EnvPolyfill\Tests\Env
✔ Env
✔ Env with quotes
✔ Env true
✔ Env false
✔ Env empty
✔ Env null
✔ Value
✔ Env will use default value if needed
✔ Will load vlucas/phpdot if a .env is present.
✔ Will not load vlucas/phpdotenv if a .env is not present.

Testing

Contributors

Theodore R. Smith [email protected]
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.

Taylor Otwell

License

MIT license. Please see the license file for more information.


All versions of laravel-env-shim with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
0.0.0/composer-include-files Version *
vlucas/phpdotenv Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package 0.0.0/laravel-env-shim contains the following files

Loading the files please wait ....