Download the PHP package hexis-hr/deployer-fanfare without Composer

On this page you can find all versions of the php package hexis-hr/deployer-fanfare. 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 deployer-fanfare

deployer-fanfare

Rich Block Kit Slack notifications for Deployer — environment, commit list, and ticket summary linked to your issue tracker.

Failure variant gets a red :x: header; redeploys with no new commits get a :neutral_face: Nothing new deployed empty state instead of a confusing green "successful".

Install

Wire it up

In your deploy.php:

fanfare_webhook falls back to slack_webhook if you already have it set, so dropping the recipe into a project that uses the Deployer contrib/slack.php recipe works without renaming.

Settings

Setting Default Purpose
fanfare_webhook falls back to slack_webhook Slack incoming webhook URL. Required.
fanfare_channel false (use webhook default) Override channel; e.g. '#deploys'.
fanfare_issue_url_template '' (no linking) Issue URL with {key} placeholder. See examples.
fanfare_ticket_pattern /\b([A-Z][A-Z0-9]{1,9}-\d+)\b/ Regex extracting ticket keys from commit subjects. Capture group 1 is the key.
fanfare_commit_cap 30 Commits beyond this collapse to … and N more.
fanfare_emoji_success :white_check_mark: Header emoji on success.
fanfare_emoji_failure :x: Header emoji on failure.
fanfare_emoji_empty :neutral_face: Header emoji when redeploy has no new commits.
fanfare_header_success Deploy successful Header text on success.
fanfare_header_failure Deploy FAILED Header text on failure.
fanfare_header_empty Nothing new deployed Header text on no-op redeploy.
fanfare_github_repo_url derived from repository Auto-detected GitHub web URL; commit/branch links are skipped if repository is not a GitHub remote.

Issue-URL template examples

Tasks

Task Hook it via Visibility
fanfare:revision before('deploy:update_code', 'fanfare:revision') hidden
fanfare:notify after('deploy:success', 'fanfare:notify') listed
fanfare:notify:failure after('deploy:failed', 'fanfare:notify:failure') listed

fanfare:revision reads the previous deploy's REVISION file under current/ so the recipe can compute the commit diff after a successful release. State is keyed by host alias, so concurrent multi-host deploys do not stomp on each other.

How the diff works

  1. fanfare:revision (before deploy:update_code) reads {{deploy_path}}/current/REVISION — that's the previous deploy's HEAD. Empty on first deploy.
  2. fanfare:notify (after deploy:success) reads the new {{current_path}}/REVISION, then runs git log <previous>..<new> against the cached deploy repo at {{deploy_path}}/.dep/repo. The result is parsed line-by-line using \x1f (ASCII unit-separator) as the field delimiter so commit subjects containing | aren't truncated.

If previous is empty (first deploy) or equals new (no-op redeploy), the empty-state header is shown instead.

Robustness

License

Apache-2.0. See LICENSE.


All versions of deployer-fanfare with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
deployer/deployer Version ^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 hexis-hr/deployer-fanfare contains the following files

Loading the files please wait ...