Download the PHP package asticode/php-deployment-manager without Composer

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

Prerequisites

You must create a UTF-8 database and a user with read/write privileges beforehand

Installation

Install the project with

$ composer create-project asticode/php-deployment-manager <your path>

And follow the instructions on the screen

$ To install the manager, you need a valid UTF-8 database as well as a user with read/write privileges on it. Once you have it, please fill in the information below:
$
$ database host [localhost]:
$ database name [deployment]:
$ database user name:
$ database user password:
$ number of backups kept per project [2]:
$ full path to composer binary [/usr/local/bin/composer]: 
$ full path to git binary [/usr/bin/git]: 
$ full path to php binary [/usr/bin/php]: 
$ 
$ Update local config parameters: OK
$ 
$ Execute SQL commands: OK
$ 
$ Create directories: OK
$
$
$ Installation successful!

In case of a problem, remove the folder created by composer and re-run the command.

How it works

The deployment manager builds all projects the same way:

1. Back up the current project content
2. Create a temp directory
3. Fetch the last version of the project in the temp directory
4. Execute the specific steps of the build handler associated with the project
5. Move the temp dir to the real project dir

Therefore, pretty much everything lies in the build handler you choose since it will determine the specific steps taken once the last version of the project has been fetched.

Only one out-of-the-box build handler is delivered with the project: the PHP Handler. Its specific steps are:

1. Copy the dist config files
2. Replace the dist parameters

Add a custom build handler

But what if I want to execute different steps you ask ?

Well nothing is easier! All you have to do is create your own build handler implementing the HandlerInterface in the /src/Service/Build/Handler/Custom folder and more specifically implement a getSpecificSteps method that will return the steps you want to execute during the deployment.

Once it's done, simply associate it with your project by giving Custom\\MyAwesomeHandler to the attribute handler of your project.

Create a new project

Add a new project with

$ <your path>/app/console project:add

Remove a project

Remove a project with

$ <your path>/app/console project:remove -n <project name> -b <branch name>

All versions of php-deployment-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
ext-pdo_mysql Version *
symfony/console Version ^2.7
monolog/monolog Version 1.*
aura/sql Version ~2.4.0
asticode/php-toolbox Version dev-master
asticode/php-file-manager Version dev-master
asticode/php-data-mapper Version dev-master
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 asticode/php-deployment-manager contains the following files

Loading the files please wait ....