Download the PHP package yarco/phpdotenv-generator without Composer

On this page you can find all versions of the php package yarco/phpdotenv-generator. 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 phpdotenv-generator

PHP DotEnv Generator

This is a tool for generating .env file which is a very common solution for configuration. What's phpdotenv?

Phpdotenv package is used in several php frameworks. Ex.:laravel. When dotenv is working, it requires a config file .env (or you can set those shell constants by hand, but it is obviously not handy enough, ex.: if you are going to add API_PREFIX=api which is a common situation you are doing REST app).

And also, in nowadays, everything is working in an automatic way. So this repository is taking care of those .env files.

Use Case

There is a laravel project you've done. And now you are going to deploy it into several cloud servers. Of course, it is easy by pulling down the source through git...Then what about the .env files?
Of cause you can copy and modify your local one then upload it, but it is not very handy, no?

So you add some config in your project's composer.json file like this:

Then you add a .env.ini like normal ini file. (Whether you put the .env.ini into git repository is controlled by you).
The ini file's content may be as the following:

So, if you want to generate dev environment config, you just type PHPDOTENV=dev phpdotenv .. And even handy, you can also config composer to run the install for you.

Of cause, in this case, you should composer require yarco/phpdotenv-generator this package first.

Extra Features


All versions of phpdotenv-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
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 yarco/phpdotenv-generator contains the following files

Loading the files please wait ....