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. If you want to learn more about how to use it read the docs.
-
Download the
idephix.phar
executable and init your idxfile.$ curl -LSs http://getidephix.com/idephix.phar > idephix.phar $ chmod a+x idephix.phar $ idx initFile
-
Now you can define tasks just defining php functions in your
idxfile.php
<?php /** * Execute the touch of a file specified in input * @param string $name the name of the file to be touch-ed * @param bool $go if not specified the script execute a dry-run */ function testParams(\Idephix\Context $context, $name, $go = false) { $context->local('touch /tmp/'.$name); $context->remote('touch /tmp/'.$name.'_remote'); }
For more information about how to define tasks, configuration for multiple environments and much more read the docs. Global installation of Idephix
Idephix is good for many different jobs, but we like to use it especially for application deployment. In fact
out of the box your idxfile.php
will be initialized using our recipe for PHP application deployment
that you can use as a starting point for your projects.
PHP 5.3.2 or above, >=5.3.12 recommended
- Manuel 'Kea' Baldassarri mb@ideato.it
- Michele 'Orso' Orselli mo@ideato.it
- Filippo De Santis fd@ideato.it
- other contributors
Idephix is licensed under the MIT License - see the LICENSE file for details