The Castor Task Runner is Now Stable!

JoliCode - JoliCodeBlog - 10/10
When we unveiled Castor to the world, we shared the reasons that prompted us to develop our own task runner. Since that article from 2023, many things have evolved in the project. And we now consider Castor and
Cet article est aussi disponible en 🇫🇷 Français : Le task runner Castor est maintenant disponible en version 1 !.

When we unveiled Castor to the world, we shared the reasons that prompted us to develop our own task runner.

Since that article from 2023, many things have evolved in the project. And we now consider Castor and its public API to be stable enough to finally deserve the v1.0.0 milestone.

Let’s take a look at what Castor looks like now… but before that, a quick recap of the project.

Section intitulée did-you-say-castorDid You Say Castor?

Castor is the PHP task runner we’ve been developing for several years. Its goal? To replace our Makefiles (or Fabric, Invoke, or shell scripts) by allowing us to create our tasks using simple PHP functions, which are easy to read, understand, and write.

No classes, no OOP, no YAML configuration, or overly complex layers to implement.

Castor’s main feature is the Developer eXperience (DX) it offers. A castor.php file, an AsTask attribute—that’s all you need to get started:

// castor.php use Castor\Attribute\AsTask; use function Castor\run; #[AsTask()] function start(''): void { run('composer install'); run('bin/console assets:install'); run('yarn install'); // … }

You can then execute your task:

castor start

Despite this apparent simplicity, Castor has much more to offer: a notion of context to adapt your tasks based o...
[Courte citation de 8% de l'article original]

Loading...