Download the PHP package chromatic/usher without Composer

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

Usher

Usher is intended for use on Chromatic repositories to supplement the use of the Robo PHP task runner. It contains a number of commands to assist in development, builds, and deployments, and can be extended in downstream repos.

Usher in a tuxedo

Compatibility

Usher Version PHP Drupal Notes
4.x 8.1+ 9.5 - 10.1+ Active development
3.x 8.1+ 9.5 - 10.1+ Minimally maintained
2.x 7.4 - 8.1 7, 9.4 - 10.0 Minimally maintained
1.x 7.4 7, 8 Unsupported

Installation

composer require chromatic/usher

Configuration

Commands

robo dev:refresh

The dev:refresh command, often available in downstream repos as composer robo dev:refresh -- SITENAME, refreshes your local development environment (DDEV) which includes:

  1. composer install
  2. Theme build (robo theme:build).
  3. Disabling front-end caches.
  4. Downloading the most recent database dump.
  5. Importing the database dump.
  6. drush deploy
  7. Generating a Drupal login link.

robo deploy:drupal

The deploy:drupal command, often available in downstream repos as composer robo deploy:drupal SITENAME DOCROOT, deploys Drupal in a standardized way which includes:

  1. drush deploy
  2. drush config:import

robo drupal:status-report

The drupal:status-report command, often available in downstream repos as composer robo drupal:status-report, checks Drupal's status report and reports warnings and errors. Specific warnings or errors can be ignored by adding the warning/error ID to the drupal_status_report_ignore_checks key in the downstream repository's robo.yml config file. For example:

To identify the ID's in question, run drush status-report --format=yaml. The output will include the ID's.

robo config:update-php-version

Use the config:update-php-version command to update the PHP version configured for a project in files listed in the php_version_config_paths key of robo.yml:

Slack Notification Options

If you would like to have Usher send a notification to Slack, you need to create a Slack app in your workspace, and then add an "incoming webhook" for the channel where you would like the notification sent. When you create the webhook, Slack will provide you with a unique URL for that channel. You must then set the SLACK_WEBHOOK_URL environment variable to the Slack webhook URL in whatever environment Usher is running in.

Sample webhook URL: https://hooks.slack.com/services/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

Extending

You can use this package for the basics and then build upon it. New commands that are relevant only to a single repo should be added to a top-level /robo directory in the project repo. Commands should live at /robo/src/Robo/Plugin/Commands/. Add a new autoload namespace to composer.json so these commands will be detected:

Contributing

If you have a new command that would be useful to multiple repositories that use this package, create a new command here under /src/Robo/Plugin/Commands via a pull request.


All versions of usher with dependencies

PHP Build Version
Package Version
Requires consolidation/robo Version ^1.4 || ^2 || ^3 || ^4 || ^5
squizlabs/php_codesniffer Version ^3.5
phpstan/phpstan-deprecation-rules Version ^0.12.6 || ^1.0.0 || ^2.0.0
async-aws/s3 Version ^1.8 || ^2.0
php Version >=8.1
drush/drush Version ^8 || ^10 || ^11 || ^12 || ^13
webflo/drupal-finder Version ^1.2
vincentlanglet/twig-cs-fixer Version ^0.4.1 || ^0.5 || ^0.6 || ^1.0 || ^2.0 || ^3.0
dealerdirect/phpcodesniffer-composer-installer Version ^0.7.2 || ^1.0.0
phpstan/extension-installer Version ^1.1
phpcompatibility/php-compatibility Version ^9.3
guzzlehttp/guzzle Version ^5.0 || ^6.0 || ^7.0
rector/rector Version ^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0 || ^1.0.0 || ^2.0.0
symfony/yaml Version ^6.3 || ^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 chromatic/usher contains the following files

Loading the files please wait ....