PHPackages                             gerar/gerar - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gerar/gerar

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

gerar/gerar
===========

PHP Configuration Management

53692[1 issues](https://github.com/slava-vishnyakov/gerar-php/issues)[1 PRs](https://github.com/slava-vishnyakov/gerar-php/pulls)PHP

Since Feb 2Pushed 12y agoCompare

[ Source](https://github.com/slava-vishnyakov/gerar-php)[ Packagist](https://packagist.org/packages/gerar/gerar)[ RSS](/packages/gerar-gerar/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP configuration management
============================

[](#php-configuration-management)

... because I'm too lazy to remember Puppet or Chef syntax.

This is **an experiment** in configuration management. Open `example.php` if you will.

Currently only **Ubuntu** is implemented. Probably going to implement CentOS later.

Installation (global)
=====================

[](#installation-global)

All commands must be run as **root**

```
apt-get update && apt-get install -y php5-cli && (wget -qO - http://git.io/FhkM4A | php)
```

run same command to update Gerar

Example run
-----------

[](#example-run)

```
gerar --set-hostname your-host-name.com
gerar some-file.php
```

Examples
--------

[](#examples)

- Install RVM, Ruby 2.0, Passenger and create `passenger-add-host` command

Read the source at

```
wget -qO - http://git.io/oVoLFg | gerar
passenger-add-ruby-host test.com
```

You should now have directory to run your Passenger/Nginx Rails application.

Other examples
--------------

[](#other-examples)

```
