Download the PHP package elijahcruz/tasker without Composer
On this page you can find all versions of the php package elijahcruz/tasker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elijahcruz/tasker
More information about elijahcruz/tasker
Files in elijahcruz/tasker
Package tasker
Short Description Easily deploy your projects through the command line.
License MIT
Informations about the package tasker
`
Introduction
Tasker is a CLI Deployment tool, written in PHP. It's purpose is to make things simple when deploying your website, and allows you to do so without actually going into the server yourself.
How it works
Tasker works by adding a host, creating a deployment file, and then running that deployment file on your server via SSH.
First, you add the host, you choose the name, such as myhost
, and then enter the host such as [email protected]
.
Next, you create a deployment file, this file is stored on your PC, so it never actually is stored on your server.
Finally, you run the deployment file on the server. This works by SSHing into the server, then running the file, line by line, as commands.
Requirements
Tasker has very minimal requirements.
- PHP 7.4+
- SSH command installed
- SQLite extension installed
We need the SQlite extension to be able to store the hosts, and the names of the deployments.
Installation
Tasker is available via composer.
`
After installation, you then just have to run the install command
`
This creates a folder called .tasker
in your home folder. This is where the deployments and database itself are stored. We need to store them here because we use a .PHAR file.
Usage
There are a few commands that Tasker has, but they are really easy to learn.
USAGE: tasker <command> [options] [arguments]
`
How the run command works
Under the hood, Tasker utilizes Spatie/SSH, allowing for a much easier experience. This uses scp
under it's hood, which is how it it able to run as such.
Deployment files are kinda like bash files in a way, only running one command per line, with the only real difference being that you don't have you .bashrc handy for it. It also doesn't work with actual bash syntax, such as if/else statements.
Tasker Limitations/Issues Observed
There are some issues that I've personally noticed with Tasker, some aren't related to Tasker itself, while some are issues that don't actually need to be fixed.
- When using the SSH command, after exiting, it will sometimes throw a SSH error. This is okay as it doesn't affect the usage of the SSH command.
- When using node/npm/npx, if you installed these using NVM, they will most likely not work. This is because NVM uses your
.bashrc
. The only way to fix that issue is to reinstall node using another way, such as NodeSource.
License
Tasker uses the MIT license.
Disclaimer
Please note that I have to say here that I take no responsability to anything that may happen to your server using Tasker. The reason I say this is because Tasker itself does not create the deployment file, you do. Tasker only runs the deployment file you ask it to run.
All versions of tasker with dependencies
ext-sqlite3 Version *
illuminate/database Version ^9.12
jc21/clitable Version ^1.2
laminas/laminas-text Version ^2.8
laravel-zero/phar-updater Version ^1.3.0
spatie/ssh Version ^1.7
symfony/process Version ^6.0