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
Automate everything. In PHP.
Simply. Efficiently. Elegantly.
🚀 TL;DR
Castor is a lightweight, modern task runner for PHP.
No need for Bash, Makefiles or YAML.
Write your automation scripts in PHP, run them from the CLI.
- ✅ 100% PHP — define tasks as simple PHP functions
- ⚡ Fast & native — no configuration, no boilerplate
- 🔧 Provided with a bunch of useful built-in functions
- 🧠 Autocompletion & descriptions for each task
- 🧰 Easy to integrate in your dev workflows
🤓 Presentation
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] While Castor hasn't reached v1.0 yet, any API changes are carefully managed with deprecation warnings and compatibility bridges.
🧑🔬 Basic 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, the following castor.php file:
Will expose a hello
task that you can run with castor hello
:
Then, you can go wild and create more complex tasks:
→ Want to see basic usages and main features of Castor? Read the Getting started documentation
🤔 Why not Robo / Make / Symfony Console?
Because:
- Robo is too verbose and OOP-heavy
- Make is not PHP, and is hard to maintain in large projects
- Symfony Console is a great base — but Castor is built on top of it and gives you superpowers
→ See detailed comparisons in our FAQ
🧰 Get started in 10 seconds
→ Castor can also be installed in other ways (phar, static binaries, Composer), see the installation documentation.
📚 Want more?
Discover more by reading the docs:
All versions of castor with dependencies
composer/composer Version ^2.8.9
jolicode/jolinotif Version ^3.1.1
jolicode/php-os-helper Version ^0.2
monolog/monolog Version ^3.9.0
nikic/php-parser Version ^5.5.0
phpstan/phpdoc-parser Version ^2.1.0
spatie/ssh Version ^1.13.0
symfony/cache Version ^7.3.1
symfony/config Version ^7.3.0
symfony/console Version ^7.3.1
symfony/dependency-injection Version ^7.3.1
symfony/deprecation-contracts Version ^3.6.0
symfony/dotenv Version ^7.3
symfony/error-handler Version ^7.3.1
symfony/expression-language Version ^7.3
symfony/filesystem Version ^7.3
symfony/finder Version ^7.3.0
symfony/http-client Version ^7.3.1
symfony/monolog-bridge Version ^7.3
symfony/process Version ^7.3.0
symfony/string Version ^7.3
symfony/translation-contracts Version ^3.6.0
symfony/var-dumper Version ^7.3.1
symfony/yaml Version ^7.3.1