Download the PHP package baptouuuu/tower without Composer

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

Tower

This is a command line tool to deploy your code base with a new approach. Instead of building another tool sending a set of shell commands over ssh with a logic of point to point, Tower takes the approach of servers as nodes of a tree where from a node you trigger the tower of sub-nodes.

The setup:

Advantages:

Drawbacks:

Example:

Say here the tree below B is also for production, with this tool you could easily place the same Tower setup on the five servers and to deploy all of them, you would run a command like twr deploy B --cascade and done! Or if you want to only deploy H, just to be sure everythings deploying fine, connect to the machine and locally run twr deploy:env prod or add this as one of the child on your local machine (A) and run twr deploy H. Once again it's a tree, you can start from wherever you want.

But in a normal case you would just hace B and C as childs of your machine.

To be really efficient (meaning not overloading your VCS server, especially if deploying asynchronously), setup childs to retrieve code from their parent. For instance, setup B and C with your VCS server as git remote; D and E have B as git remote, and so on...

Note: I talk about git here, but your not forced to use it (but cool kids do ;))

Note: When cascading, if a child fail to deploy, it's subtree won't be deployed

Another use case would be you have a single server for your app, and other servers for related services required by your first server. You could imply, with this notion of tree, that every time you deploy your app it triggers the deployment of those related services (so everything is always up-to-date).

Installation

This is done via composer. Run the following command to install to install Tower as a global dependency.

This will install the binary file in ~/.composer/vendor/bin.

Now to have the bin file as global command you need to set the folder in your system path. You can do by adding the line below in ~/.bash_profile or ~/.bashrc.

Configuration

Notes:

Usage

Deploy an env when your on the machine:

The continue flag is useful when you deploy multiple environments, if one fails it will continue to deploy the others (this flag is off by default, and always off when deploying in cascade)

Deploy a child

This would run the command twr deploy:env env1 envX on the machine called child.

async flag run the previous command in background and displays you the resulting PID, and then move to the next child specified to deploy.

cascade flag tells the child to deploy its childs when itself is deployed succesfully.

Important: when cascading, all childs and subchilds of the node you specified will be deployed (so be sure how to architect your tree).


All versions of tower with dependencies

PHP Build Version
Package Version
Requires symfony/yaml Version 2.5.*
symfony/console Version 2.5.*
monolog/monolog Version 1.6.*
symfony/filesystem Version 2.5.*
symfony/dependency-injection Version 2.5.*
symfony/config Version 2.5.*
symfony/finder Version 2.5.*
symfony/process Version 2.5.*
php Version >=5.3.3
swiftmailer/swiftmailer Version @stable
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 baptouuuu/tower contains the following files

Loading the files please wait ....