Download the PHP package tlr/frb-cli without Composer

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

Fortrabbit CLI (Un-official)

Still under development - Do not use just yet!

A CLI tool to automate git deployments and builds with fortrabbit. Built to work with most PHP applications (Laravel, Symfony, Wordpress, etc.). Currently only tested with the "Universal Stack" on Fortrabbit.

Usage

Installation

Add the cli project somewhere on your system:

Then add an alias to your rc file (~/.zshrc, ~/.bashrc) - something like

To update, simply cd into the directory, and run:

NB. Ideally, this will be installable through composer, but I am coming up against some dependancy issues when installing alongside some other common global projects. (Dependancy issues are between illuminate's support and the open source version of illuminate's collections).

Project Setup

Then, at your project root, you can run frb init staging production to set up the .deploy folder, and put in some sample config files for staging and production - you can change the names of your different deployment environments.

Edit the config file(s) with your fortrabbit app name, and other details (see config section below for explanation of options)

Deploy!

For the first time running a git deploy with fortrabbit, you will need to run:

And from then on, you can run:

Config File

Config files can be created when you first bootstrap your project - frb init staging production will create staging and production config files.

Alternatively, you can use the frb make:env command to add a sample file to your config directory.

NB. There are serveral more config options that are as yet undocumented - mainly to handle the differences between "pro" and "universal" apps.

The sample config file looks like this:

name

This is the app name in fortrabbit.

frb_zone

This is the deploy location of the app. You can get this from the second half of the git address (ie. my_app@deploy.eu2.frbit.com:my_app.git)

target_branch

The local name of the branch you want to deploy from. origin/master is the default, as that will mean that it will only deploy code that has been accepted into the master branch of the remote origin repository on GitHub (or wherever your main repository is - GitLab, BitBucket, etc.)

For example, if you use a forking model, then this may be upstream/master. Or upstream/develop for a staging site.

remote_branch

In most circumstances, this should not be changed. Fortrabbit uses the master branch on its remote repository. If you know what you're doing and you change that for whatever reason, you can change it here. In 99% of cases though, we do not recommend changing the default deploy branch.

build_commands

A list of build commands to be run locally to generate the site's assets. You can specify a directory to run the command in as well - for example,

build_directories

A list of directories that have been generated by the build commands. These will be scp'd up to the server. For example:

build_files

A list of files that have been generated by the build commands. These will be scp'd up to the server. For example:

Commands

frb init [...environment1, environment2, etc.]

Sets up the .deploy directory with an appropriate git ignore file (for ignoring logs and other files that you don't want to commit)

Accepts any number of space separated environment names, and will create a sample environment file for each.

frb make:env [new-environment-name]

Creates a sample environment file in the .deploy directory.

frb ssh [environment]

SSH's you into the server for the given environment.

frb deploy [environment]

Runs a full deploy to the given environment.

frb deploy:first [environment]

Runs an initial deploy to the given environment. Must be run before frb deploy will work.

frb deploy:touch [environment]

Runs a code-only deploy to the given environment. Will not build or push any assets.

frb deploy:assets [environment] [--scp-only] [--build-only]

Runs an assets-only deploy - building and pushing assets to the remote server.

frb remote:reset [environment]

Runs a reset command on the remote server. Warning - this is a destructive command!

To Do


All versions of frb-cli with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ~6.0
symfony/console Version ~3.0|~4.0
symfony/filesystem Version ~3.0|~4.0
symfony/process Version ~3.0|~4.0
symfony/yaml Version ^4.1
illuminate/support Version ^5.6
symfony/finder Version ^4.1
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 tlr/frb-cli contains the following files

Loading the files please wait ....