Download the PHP package mikevrind/deployer without Composer

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

Deployer

License Latest Stable Version Total Downloads

Use this package to automate the deployment process of your Laravel project that are hosted on Gitlab. Just follow the installation instructions. Don't forget to check the configuration file for the deployment options!

Installation

Require this package with composer:

After updating composer, add the DeployerServiceProvider to the providers array in config/app.php

Configuration

The setup of the deployer can (and should be) changed by publishing the configuration file.

You should use Artisan to copy the default configuration file from the /vendor directory to /config/deployer.php with the following command:

It's advised to define the settings via your .env file so that it's possible to change the behavior of the deployer per environment

CSRF Token

Update the VerifyCsrfToken middleware by adding '_deployer/deploy' to the $except array.
Without this exception, all webhooks will fail because of a missing token in each request.

.env setup

Add the following lines to your .env(.example) file. The DEPLOYER_REMOTE_* settings are used to establish a CLI connection with the server.

Settings

DEPLOYER_ENABLED (default; false)

Determines if the deployer should be enabled for this environment

DEPLOYER_MAIL_ENABLED (default; false)

Determines if after deployment has been completed a mail should be send to the configured recipients

DEPLOYER_REPO_BRANCH (default; master)

Determines to which branch the deployer should listen to when the web hook is fired

DEPLOYER_REPO_PROJECT_ID (default; 1)

Determines to which project ID the deployer should listen to when the web hook is fired

DEPLOYER_REPO_REPOSITORY (default; [email protected]/group/project.git)

Determines to which project ID the deployer should listen to when the web hook is fired

DEPLOYER_REMOTE_HOST (default; '')

Determines to which HOST the SSH connection should be established

DEPLOYER_REMOTE_USER (default; '')

Determines the user that should be used for the SSH connection

DEPLOYER_REMOTE_PWD (optional, default; '')

Determines the password for the user that should be used for the SSH connection

DEPLOYER_REMOTE_KEY (optional, default; '')

Determines the public_key filename for the user that should be used for the SSH connection

DEPLOYER_REMOTE_KEYTEXT (optional, default; '')

Determines the public_key for the user that should be used for the SSH connection

DEPLOYER_REMOTE_KEYPHRASE (optional, default; '')

Determines the password for the public_key

DEPLOYER_REMOTE_TIMEOUT (default; 120)

Determines how long the connection should wait for your commands. Settings this to 0 will wait indefinitely for your command to finish.

Webhook configuration

Open your project and go to Settings -> Web hooks. This package listens to the _deployer/deploy route.
So add something like http(s)://www.domain.tld/_deployer/deploy as the URL.
In most cases, the Push events trigger will be oke to use. Now add the new webhook and you're done!

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any (security related) issues, please create an issue in the the issue tracker.

License

The MIT License (MIT). Please see License File for more information.


All versions of deployer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
laravelcollective/remote Version 5.*
illuminate/support Version 5.*
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 mikevrind/deployer contains the following files

Loading the files please wait ....