innmind/genome

Tool to deploy projects and libraries on a machine

3.1.0 2021-02-20 10:35 UTC

This package is auto-updated.

Last update: 2024-10-20 18:23:24 UTC


README

Build Status codecov Type Coverage

Tool to facilitate the setup of machines.

The goal here is to provide a declarative way to setup machine without having to rely on config files that are not code. Here all the declaration is done via PHP so you can easily navigate from the declaration of a gene to the actual code being run.

Since it's standard PHP, you can easily require genes provided by other packages by requiring the packages via Composer. Look for the innmind/genome virtual package on packagist for more genes.

Installation

composer global require innmind/genome

Usage

<?php
# genome.php

use Innmind\Genome\{
    Genome,
    Gene,
};

return new Genome(
    new Gene\PHP(7, 4),
    new Gene\Composer,
    Gene\ComposerPackage::global('innmind/installation-monitor'),
);
genome express path/to/genome.php --host=ssh://user@machine/

This will load the genome specified above and will sequencely install php7.4, composer and the package innmind/silent-cartographer as a global package.

You can omit the --host option and the install will happen on the local machine.

You can use this tool to automate the bootstrap of machines.