Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 6, 2024 via composer

consolidation/robo 4.0.6

Modern task runner
Package summary
Share
0
issues
1
license
27
MIT
Package created
1 Jul 2016
Version published
30 Apr 2023
Maintainers
1
Total deps
27
Direct deps
12
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
27 Packages, Including:
composer/semver@3.4.0
consolidation/annotated-command@4.10.0
consolidation/config@2.1.2
consolidation/log@3.1.0
consolidation/output-formatters@4.5.0
consolidation/robo@4.0.6
consolidation/self-update@2.2.0
dflydev/dot-access-data@v3.0.2
grasmash/expander@3.0.0
league/container@4.2.2
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/log@3.0.0
symfony/console@v6.4.7
symfony/deprecation-contracts@v3.5.0
symfony/event-dispatcher@v6.4.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/filesystem@v6.4.7
symfony/finder@v6.4.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/process@v6.4.7
symfony/service-contracts@v3.5.0
symfony/string@v7.0.7
symfony/yaml@v6.4.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

12
All Dependencies CSV
β“˜ This is a list of consolidation/robo 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
consolidation/annotated-command4.10.0-MIT
prod
consolidation/config2.1.239.41 kBMIT
prod
consolidation/log3.1.0-MIT
prod
consolidation/output-formatters4.5.091.97 kBMIT
prod
consolidation/self-update2.2.012.24 kBMIT
prod
league/container4.2.2-MIT
prod
symfony/consolev6.4.7-MIT
prod dev
symfony/event-dispatcherv6.4.7-MIT
prod dev
symfony/filesystemv6.4.7-MIT
prod dev
symfony/finderv6.4.7-MIT
prod
symfony/processv6.4.7-MIT
prod dev
symfony/yamlv6.4.7-MIT
prod dev

Visualizations

Frequently Asked Questions

What does consolidation/robo do?

Consolidation/Robo is a modern, simple PHP task runner that is inspired by Gulp and Rake. Designed to automate common tasks, it allows for writing cross-platform scripts, processing assets such as less, sass, and minification. It also supports running tests, executing daemons and workers, watching filesystem changes, and deployment with sftp/ssh/docker.

How do you use consolidation/robo?

To use Consolidation/Robo, you can install it via Phar or Composer. For Phar, you download the robo.phar file and place it in your /usr/bin directory (or /usr/local/bin on OSX 10.11+). For Composer, you can run composer require consolidation/robo:^4 and execute Robo tasks with vendor/bin/robo.

For example usage, you define tasks in the RoboFile.php, which can be created by running robo init. All public methods in RoboFile.php are tasks. You can also run pre-defined tasks that start with the task prefix and are located in traits.

Here are a few code examples:

To run an acceptance test with a local server and a Selenium server, you can use the following code:

use Robo\Symfony\ConsoleIO;

class RoboFile extends \Robo\Tasks {

    function testAcceptance(ConsoleIO $io, $seleniumPath = '~/selenium-server-standalone-2.39.0.jar') {
       // Launch PHP server on port 8000 for web dir
       // Server will execute in background and stop in the end
       $this->collectionBuilder($io)->taskServer(8000)->background()->dir('web')->run();

       // Run Selenium server in background
       $this->collectionBuilder($io)->taskExec('java -jar ' . $seleniumPath)->background()->run();

       // Load Symfony Command and run with passed argument
       $this->collectionBuilder($io)->taskSymfonyCommand(new \Codeception\Command\Run('run'))->arg('suite','acceptance')->run();
    }
}

You can watch for changes in your composer.json file and execute composer update when changes occur:

class RoboFile extends \Robo\Tasks {

    function watchComposer(ConsoleIO $io) {
        $this->collectionBuilder($io)->taskWatch()->monitor('composer.json', function() use ($io) {
            $this->collectionBuilder($io)->taskComposerUpdate()->run();
        })->run();
    }
}

Where are the consolidation/robo docs?

Consolidation/Robo's documentation is mainly located on its GitHub page. This features its README file sourced directly from the repository which provides an overview of the package, its installation process, usage examples, and more. For more detailed information and examples, you can check out its RoboFile.php files in the repository or from the Codeception project.