Download the PHP package derhasi/staging without Composer

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

staging

travis ci test status

A helper script to deploy a specific code state from one git in another git repo.

Bash script for deploying the exact state of a given branch to a remote branch. This is done by using "diff commits".

This script is for adjusting the staging branch to a specific branch content. The resulting branch will likely not share the history with the given branch, but will ensure all files are present in the same state as in the original branch.

This approach is needed to ensure we can use the a git based hosting with a fixed branch, to rollout and test multiple different branches. In that case we have got a single staging branch to deploy to. That branch only will get "diff commits" that changes the file state to a defined state of the given branch.

Installation

via composer

composer global require derhasi/staging

Manually

Usage:

The command creates a commit on the remoteBranch with the exact code state of the sourceBranch.

In local branch mode the state is applied on a local branch without pushing to a remote repository.

Arguments

  1. {remote}: Name of the remote repository to push the code to. Example: origin
  2. {remoteBranch}: Name of the remote branch to push the code to. Example: master
  3. {sourceBranch}: Name of the branch to get the code from. May be a local or a remote branch reference. Examples: mybranch or origin/66-hello

Options

Features

Example

You have one stage environment available, where you are only allowed to push code via git. The corresponding git repository is located at https://stage.example.com/site.git. The branch to deploy to is master. Now, you have got several branches in development (123-story, 124-event, 125-contact) you want to test on that staging environment. You can do that, one after another using staging.

First, add your stage remote to your local repo: git remote add stage https://stage.example.com/site.git.

Now you can deploy the code to your stage from any arbitrary branch.

Let's start with the first: staging stage master 123-story. After that git diff 123-story stage/master would show no difference.

With executing staging stage master 124-event, you will get the same for git diff 123-story stage/master.

You even can enter staging stage master origin/125-contact to directly work with the a remote branch instead of a local branch.


All versions of staging with dependencies

PHP Build Version
Package Version
No informations.
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 derhasi/staging contains the following files

Loading the files please wait ....