Download the PHP package hexide-digital/gitlab-deploy without Composer

On this page you can find all versions of the php package hexide-digital/gitlab-deploy. 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 gitlab-deploy

Gitlab Deployer for Laravel

Hexide digital Gitlab Deployer for Laravel

This package was created to optimize and improve a company's CI/CD in a Gitlab environment.

Requirements

This package version requires PHP 8.1 and supports Laravel 9-11.

Available SSH agents on local machine and remote server.

Remote server must use GNU/Linux.

Dependencies

This package uses GitLab API to create CI/CD variables, powered by package graham-campbell/gitlab.

For deployment uses deployer/deployer.

To render beautiful console output uses nunomaduro/termwind.

Installation

Add dependency

You can install this package using Composer:

And if you are using composer version 2.4 and above, we recommend run the bump command to lock latest version:

After installation, this package will automatically register its service provider.

Usage

Install and publish files

To publish files for deployment and sample files run command bellow:

Examples of files to be copied are located in this folder.

Configurations and prepare access

Open .deploy/deploy-prepare.yml and fill all needed options.

For most cases only need to be specified next options:

But for every stage are available next options:

Running configuration command

Basic launch

You can begin configuring your project deployment for specific stage name (i.e. for dev branch) by running:

Normally, the stage name must be the same as git branch name.

After command executing

If all tasks completely executed, to enable auto-deployment go to Settings -> CI/CD -> Variables and change value for CI_ENABLED to 1. After that, when you edit branch with configured deployment, Gitlab will run CI/CD Pipelines automatically.

Only-print launch

If you want to manually execute commands or just prepare to future deployment, set a --only-print option when calling command. All commands and examples will be written to log files located in .deploy/logs folder. All that remains is to copy and execute commands from the file.

Tips for Gitlab

Gitlab API access token

In order for variables and other deployment options to be created, you need to grant access to the repository settings. This package uses the Gitlab API method using Access Tokens.

We recommend creating one personal access token and use for future deployment configurations. For this navigate to Profile -> Access Tokens and press Add new token.

Then fill the next options:

Then click Create personal access token.

After creating, copy this token and save in somewhere safe place, because you won't be able to access it again, and set in deploy config file


If you don't want to use and create personal token, you can create project token with access only for repository.

To get Access Token follow this path Settings -> Access Tokens and press Add new token.

Fill next options like bellow:

Then click Create project access token to see the token, copy it and set in deploy config file.

Project ID

Open the main page of the repository and on top you can see repository info and project id. It also can be copied with button on the right side.

Can I hire you guys?

Yes! Say hi: [email protected] We will be happy to work with you! Other work we’ve done

Follow us

Follow us on LinkedIn or Facebook


All versions of gitlab-deploy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
deployer/deployer Version ^7.3
graham-campbell/gitlab Version ^7.5
guzzlehttp/guzzle Version ^7.4
http-interop/http-factory-guzzle Version ^1.0
laravel/framework Version ^9.0 || ^10.0 || ^11.0
spatie/laravel-package-tools Version ^1.13.0
symfony/console Version ^6.0 || ^7.0
symfony/process Version ^6.0 || ^7.0
symfony/yaml Version ^6.1 || ^7.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 hexide-digital/gitlab-deploy contains the following files

Loading the files please wait ....