Download the PHP package locomotivemtl/charcoal-contrib-command without Composer

On this page you can find all versions of the php package locomotivemtl/charcoal-contrib-command. 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 charcoal-contrib-command

Charcoal Contrib Command

License Latest Stable Version Code Quality Coverage Status Build Status

A charcoal contrib used to provide dynamic cron scripts, easily schedulable.

Table of Contents

Installation

The preferred (and only supported) method is with Composer:

Including the modules

Just add the following module in your json configuration file:

"charcoal/command/command": {},

Setting a cron

Script command/process-queue is added with the command's module.

Dependencies

Required

PSR

--TBD--

Service Provider

The following services are provided with the use of charcoal-contrib-command

Services

Configuration

Every bit of configuration for the command contrib should be under the namespace command. Configurations allows the possibility to define options for the logger, such as the handlers, processors or formatters. All default configurations are visible in the Charcoal\Command\Logger\Config\CommandLoggerConfig class.

Defaults

The handlers should be resolvable by the logger handler generic factory. In the given example, we see Charcoal\Command\Logger\Handler\CharcoalHandler class. The options defined with the handler will be passed in the handler's constructor method.

The formatters should be resolvable by the logger formatter generic factory. In the given example, we see Charcoal\Command\Logger\Formatter\Command. The options defined with the formatter will be passed in the formatter's constructor method.

The class should be resolvable by the model factory. In the given example, we see Charcoal\Command\Log.

Usage

Creating a command class

A command class should extend the AbstractCommand class. You can use the setDependencies public method to access any dependencies you might need. The public method execute is called when everything is ready.

Interface

Example

Back-end form

Use the CommandQueue model to queue a new command.

Key Type Example Description
command string charcoal/cache/command/clear Should be resolvable by the command factory. Hits Charcoal\Cache\Command\ClearCommand
arguments array { "someProperty": "someValue" } Any arguments that could be necessary for the executed command. Passed as argument to the command's constructor method.
issuedDate DateTime now When was the command issued. This is done on preSave and shouldn't be altered.
processingDate DateTime now When should the script be run?
processedDate DateTime now When has the script been ran? Could differ from the processingDate depending on the cron frenquency and the time of execution of the command.
processed boolean false Flag as to whether or not the command has been processed.

Available Service

Method

Parameters

Array data

Example

The default processing date is "now".

Development

To install the development environment:

To run the scripts (phplint, phpcs, and phpunit):

API Documentation

Development Dependencies

Coding Style

The charcoal-contrib-command module follows the Charcoal coding-style:

Coding style validation / enforcement can be performed with composer phpcs. An auto-fixer is also available with composer phpcbf.

Credits

License

Charcoal is licensed under the MIT license. See LICENSE for details.


All versions of charcoal-contrib-command with dependencies

PHP Build Version
Package Version
Requires php Version >7.1
monolog/monolog Version >=1.24.0
locomotivemtl/charcoal-core Version ~0.4
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 locomotivemtl/charcoal-contrib-command contains the following files

Loading the files please wait ....