PHPackages                             refs/sputnik - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. refs/sputnik

ActiveLibrary[CLI &amp; Console](/categories/cli)

refs/sputnik
============

Modern PHP TaskRunner with class-based tasks, Nette DI, and template engine

0.1.0(today)00MITPHPPHP ^8.2CI failing

Since Apr 1Pushed todayCompare

[ Source](https://github.com/refsz/sputnik)[ Packagist](https://packagist.org/packages/refs/sputnik)[ Docs](https://github.com/refsz/sputnik)[ RSS](/packages/refs-sputnik/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (17)Versions (5)Used By (0)

Sputnik
=======

[](#sputnik)

[![CI](https://github.com/refsz/sputnik/actions/workflows/ci.yml/badge.svg)](https://github.com/refsz/sputnik/actions/workflows/ci.yml)[![Latest Release](https://camo.githubusercontent.com/82dcb385715d6632474d10ddf8aac59d281ab8f71144a33e261500a6afdfbc59/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f726566737a2f737075746e696b)](https://github.com/refsz/sputnik/releases/latest)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/d840cef9807c8f76051ad687841d67f4d830c84e0d83236968e53124ef6742d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e322d3838393242462e737667)](composer.json)

A modern PHP TaskRunner with class-based tasks, environment-aware execution, and a powerful template engine.

Why Sputnik?
------------

[](#why-sputnik)

- **Class-per-task** -- each task is a focused, testable unit with PHP 8 attributes
- **Context-aware** -- switch between dev/staging/prod with variable overrides, not code changes
- **Template engine** -- simple `{{ variable }}` syntax, no magic functions
- **Environment-aware** -- transparent command routing between host and container
- **PHAR-first** -- single-file distribution, zero dependencies at runtime

Installation
------------

[](#installation)

### PHAR (recommended)

[](#phar-recommended)

Download the latest release:

```
curl -Lo sputnik.phar https://github.com/refsz/sputnik/releases/latest/download/sputnik.phar
chmod +x sputnik.phar
```

Verify the checksum:

```
curl -Lo sputnik.phar.sha256 https://github.com/refsz/sputnik/releases/latest/download/sputnik.phar.sha256
sha256sum -c sputnik.phar.sha256
```

### Composer

[](#composer)

```
composer require --dev refs/sputnik
```

Quick Start
-----------

[](#quick-start)

### 1. Initialize

[](#1-initialize)

```
php sputnik.phar init
```

Creates `.sputnik.dist.neon` and a `sputnik/` directory with an example task.

### 2. Create a Task

[](#2-create-a-task)

```
