Download the PHP package kodilab/deployer without Composer

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

Build Status

1 - Disclaimer

Deployer is an unattended script. However, in order to let you check the changes which Deployer is going to do, it will print the change list and wait 15 seconds before start the process. If you see something unexpected, close the process.

What's more, Deployer can be launched with a simulated mode where it simulates the deployment process (no changes are done in production) in order to let you check the files which are going to be modified/added/removed.

Please, consider fill an issue if you see a bug or an unexpected behaviour. That would be really useful to make Deployer better.

2 - What's Deployer

Deployer is an unattended script which compares the production project version and the current version in order to list the files changed (that means: new files, modified files and removed files) and upload/remove them in the production environment using SFTP or FTP (at this moment, SFTP and FTP are provided but more protocols can be added easily).

It uses git (your project must be included in a Git repository) to compare the versions. And parses the composer.lock file in order to know which composer packages required by the project are new/updated/removed.

2.1 - BUILD file

In order to let Deployer know the production environment version, it will generate a file called BUILD in the production environment which contains the commit reference. This file should be reachable for Deployer as it will try to download it in the initial step of the deployment process. If Deployer can't get this file, then it will compare from the first commit of the project (That means, it will deploy all files tracked).

You can change that behaviour specifying the commit SHA reference manually when you call to Deployer. You can see this in the How to use it section.

3 - Getting Started

Deployer has been designed to work in any PHP project. If you are developing a Laravel project, a Laravel integration package is available here.

You can install deployer into your project with:

How to use it

You can call to Deployer using a deploy_it() helper method. This is the signature of the function:

This is an example of a script which launch Deployer:

4 - Configuration

The deployer configuration is an array which is defined when Deployer is instantiated. A configuration array example is present in config/config.php file, you can use it as example. The file contains comments of each parameter in order to adapt deployer to your needs. Take a look!

4.1 - Protocols

Protocols let deployer know which is the way deployment must be done. At this moment there are 3 different protocols implemented: FTP, SFTP and Simulate. The last one, Simulate, is an special protocol to simulate a deployment in order to let you know how deployer would work without make any changes into production.

Deployer has been designed to be extensible adding more protocols.


All versions of deployer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/support Version 5.5.*|5.6.*|5.7.*|5.8.*
illuminate/console Version 5.5.*|5.6.*|5.7.*|5.8.*
symfony/console Version ~4.0
phpseclib/phpseclib Version ~2.0
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 kodilab/deployer contains the following files

Loading the files please wait ....