tacman/castor-tools

Extend castor with some common tools

Installs: 62

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:castor-plugin

pkg:composer/tacman/castor-tools

1.0.0 2025-10-25 12:09 UTC

This package is auto-updated.

Last update: 2026-01-02 14:07:34 UTC


README

This repository contains functions and tasks I use during developing Symfony applications and using Castor.

Auto-install castor

For a flex-like experience for castor, replace castor.php with this

<?php

use Castor\Attribute\AsTask;

use function Castor\{io,import,capture,run};

foreach (glob(__DIR__ . '/.castor/vendor/*/*/castor.php') as $castorFile) {
    import($castorFile);
}

Installation

To install the package, you can use the following command:

castor composer require tacman/castor-tools

In action

castor

   █████████                     █████
  ███░░░░░███                   ░░███
 ███     ░░░   ██████    █████  ███████    ██████  ████████
░███          ░░░░░███  ███░░  ░░░███░    ███░░███░░███░░███
░███           ███████ ░░█████   ░███    ░███ ░███ ░███ ░░░
░░███     ███ ███░░███  ░░░░███  ░███ ███░███ ░███ ░███
 ░░█████████ ░░████████ ██████   ░░█████ ░░██████  █████
  ░░░░░░░░░   ░░░░░░░░ ░░░░░░     ░░░░░   ░░░░░░  ░░░░░

castor v1.1.0

Usage:
  command [options] [arguments]

Options:
  -h, --help                       Display help for the given command. When no command is given display help for the list command
      --silent                     Do not output any message
  -q, --quiet                      Only errors are displayed. All other output is suppressed
  -V, --version                    Display this application version
      --ansi|--no-ansi             Force (or disable --no-ansi) ANSI output
  -n, --no-interaction             Do not ask any interactive question
      --no-remote                  Skip the import of all remote remote packages
      --update-remotes             Force the update of remote packages
      --castor-file[=CASTOR-FILE]  Specify an alternative castor file to use instead of the default "castor.php"
  -v|vv|vvv, --verbose             Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  completion       Dump the shell completion script
  hello            Welcome to Castor!
  help             Display help for a command
  list             List commands
  reset-database   Purge and re-create the database
  start-services   Start local docker services
 castor
  castor:composer  [composer] Interact with built-in Composer for castor
  castor:execute   [execute] Execute a remote task from a packagist directory
 tacman
  tacman:sqlite    Switch to sqlite
castor
castor tacman:sqlite
castor tacman:sqlite --remove