Download the PHP package jolicode/castor without Composer
On this page you can find all versions of the php package jolicode/castor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package castor
Castor is a DX-oriented task runner built in PHP featuring a range of functions for common task processing.
It can be viewed as an alternative to Makefile, Fabric, Invoke, Shell scripts, etc., but it leverages PHP's scripting capabilities and extensive library ecosystem.
It comes with many features to make your life easier:
- Seamless parsing of arguments and options, simplifying input handling
- Autocomplete support for faster and error-free typing
- A built-in list of useful functions:
run()
: Run external processes, enabling seamless integration with external toolsio()
: Display beautiful output and interacts with the terminalwatch()
: Watch files and automatically triggers actions on file modificationsfs()
: Create, remove, and manipulate files and directories- And even more advanced functions
[!NOTE] Castor is still in early development, and the API is not stable yet. Even if it is unlikely, it is still possible that it will change in the future.
Usage
In Castor, tasks are set up as typical PHP functions marked with the #[AsTask()]
attribute in a castor.php
file.
These tasks can run any PHP code but also make use of various functions for standard operations that come pre-packaged with Castor.
For example:
Will expose a greetings:hello
task that you can run with castor greetings:hello
:
Then, you can go wild and create more complex tasks:
If you want to read more about usage, you can read the basic usage documentation, or watch some examples.
Installation
With the installer
[!TIP] This is the recommended way to install Castor on Linux and macOS. It requires PHP >= 8.1.
There are other ways to install Castor, please refer to the documentation.
Further documentation
Discover more by reading the docs:
All versions of castor with dependencies
composer/composer Version ^2.8.2
jolicode/jolinotif Version ^3.0.0
jolicode/php-os-helper Version ^0.1.0
monolog/monolog Version ^3.8
nikic/php-parser Version ^v5.3.1
phpstan/phpdoc-parser Version ^1.33
spatie/ssh Version ^1.12.0
symfony/cache Version ^6.4.14
symfony/config Version ^6.4.14
symfony/console Version ^6.4.15
symfony/dependency-injection Version ^6.4.15
symfony/deprecation-contracts Version ^3.5
symfony/dotenv Version ^6.4.13
symfony/error-handler Version ^6.4.14
symfony/expression-language Version ^6.4.13
symfony/filesystem Version ^6.4.13
symfony/finder Version ^6.4.13
symfony/http-client Version ^6.4.15
symfony/monolog-bridge Version ^6.4.13
symfony/process Version ^6.4.15
symfony/string Version ^6.4.15
symfony/translation-contracts Version ^3.5.0
symfony/var-dumper Version ^6.4.15
symfony/yaml Version ^6.4.13