Download the PHP package zicht/z-plugin-env without Composer

On this page you can find all versions of the php package zicht/z-plugin-env. 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 z-plugin-env

Z plugin to work with remote enviroments

This plugin provides a set of utilities and tasks to work with remote SSH environments

Usage

To access remotes, you can organize them using the envs setting:

You can now SSH into this remote by running:

Unless you have already shared your public key with this environment, you'd be asked for your SSH password. I'd recommend to share your public key with the remote, so you don't have to supply your password everytime the plugin tries to access it. Of course, protecting your keyfile with a passphrase would be sensible.

Share your key

Using the z env:ssh-copy-id can copy your key to the remote. Of course, this is a convenience command, which simply wraps around catting your public key to the remote's user's ~/.ssh/authorized_keys files. It doesn't bother if your ssh is already "connectable".

Executing remote commands

You can execute remote commands by accessing the shell:

Run a command directly within the remote's root dir:

Accessing remotes from your Z file:

You have a few options to do this. The most intuitive would be to implement your own ssh command:

You can also use something that's called "decorators" to wrap commands in the remote shell. This is shorter, but it is especially useful since you do not need to wrap you command in quotes (which can become pretty hairy), and the ssh function respects your current shell.

Note: Under the hood, the contents of the command are fed to the STDIN of the shell that is the result of the ssh function call. You can verify this using z z:eval 'ssh("production")'. This will display the current shell SHELL (which is /bin/bash -e by default, and adds the x flag when in debugging mode) executed on the remote within an SSH. This effectively creates a pipe to which the command's content is streamed. You can mix and match this with other shells (for example a remote mysql client). Read the Z docs for more information on how to leverage this.

Maintainer(s)


All versions of z-plugin-env with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
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 zicht/z-plugin-env contains the following files

Loading the files please wait ....