Download the PHP package dekor/devio without Composer
On this page you can find all versions of the php package dekor/devio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package devio
Short Description Laravel-style dev & deploy scripts for Docker-based PHP projects: shell, SSH, Docker, notifications. Ships as a single phar.
License Apache-2.0
Homepage https://github.com/deniskoronets/devio
Informations about the package devio
devio
A library for writing your project's dev and deploy script in PHP: ./dev up, ./dev art migrate, ./dev deploy.
It's made for Docker-based PHP projects and reads like Laravel.
Docs: deniskoronets.github.io/devio
- Commands with arguments passed through:
./dev art make:migration create_posts_table. - Shell runs argv arrays (no escaping needed), streams output, and stops the command on the first failure with its exit code.
- SSH: inside
Ssh::to('prod')->run(fn)everyShell,Docker,GitandEnvcall runs on that host, in its dir, over one shared connection. The server needs nothing but Docker. - Docker: compose, build, and image transfer without a registry (
docker save | ssh docker load). - Releases:
Release::to('prod')->deploy()builds HEAD here, tagged with its sha, ships it without a registry, migrates and starts it; the server keeps the last 3, sorollback()takes seconds. - Logs: steps, tasks, every command with its host, status and duration. Long
docker buildlines fit the terminal;-valso shows the commands devio runs only to look at things. - Notifications: Telegram, Slack, Discord, or your own channel, by level.
- One phar, no dependencies, PHP 8.1+.
Install
Either download devio.phar next to your script:
Later, ./dev devio-update-phar replaces it with the latest one.
and require __DIR__ . '/devio.phar';, or use Composer:
and require __DIR__ . '/vendor/autoload.php';. Then make the script executable: chmod +x dev.
The phar works before composer install has run, and on machines without Composer.
Docs
Online at deniskoronets.github.io/devio:
- API reference
- Recipes: dev stack shortcuts, deploying Docker images without a registry, rollback, Telegram/Slack alerts, secrets, confirmations
Development
dist/devio.phar is committed, so it can be downloaded straight from main. The pre-commit hook rebuilds it from
the staged files whenever a commit touches src/, build/ or LICENSE, and adds it to the commit. CI fails if the
committed phar doesn't match the sources.
Our sponsors
Author
Created and maintained by Denys Koronets.
License
Apache 2.0