Idephix

Ideato automation and deploy tool

Download .phar View on GitHub

Welcome to Idephix.

curl http://getidephix.com/idephix.phar > idephix.phar

Idephix is a PHP automation tool useful to perform remote and local tasks. It can be used to deploy applications, rotate logs, synchronize data repository across server or create a build system. The choice is up to you. Idephix is still in alpha, so things will change. You can report issues and submit PRs (greatly appreciated :-)) on the github repo

Install Idephix

You can choose to install idephix where you prefer. Idephix will use (or create for you) the configuration file in the corrent path.


  $ curl http://getidephix.com/idephix.phar > /usr/local/bin/idx
  $ chmod a+x /usr/local/bin/idx

Alternatively you can install it through composer

$ composer require ideato/idephix --dev

Usage example

You can define tasks simply defining functions within the idxfile.php

<?php

    /* /your/project/path/idxfile.php */

    function remoteClearCache($idx)
    {
      $idx->remote("cd /my/project && rm -Rf cache/*");

    )

    function ManageFiles($idx)
    {
        $idx->output->writeln("Download file.log");
        $idx->sshClient->get("/remote/dir/file.log", "/tmp/local.log");
        $idx->local("echo 'add some text' >> /tmp/local.log");
        $idx->sshClient->put("/tmp/local.log", "/remote/dir/file2.log");
    }

For detailed instructions and usage examples read the docs

Requirements

PHP 5.3.2 or above, at least 5.3.12 recommended

Authors

Manuel 'Kea' Baldassarri, Michele 'Orso' Orselli, Filippo De Santis and other contributors

License

Idephix is mantained by ideato, licensed under the MIT License - see the LICENSE file for details

Support or Contact

Having trouble with Idephix? Check out the documentation or ask us for direct support to info@ideato.it and we’ll help you sort it out.

Old versions

You can download old versions of idephix from the archive

curl http://getidephix.com/archive/idephix-0.2.0.phar > idephix.phar