Skip to content
Greg Bowler edited this page Nov 15, 2014 · 41 revisions

On Linux, Mac or Windows (using Cygwin), the following one-liner can be used to install the automated tools and environment:

php -r "readfile('http://php.gt/install');" | php

Paste this line into your terminal. The script explains what it's doing and pauses before it does it. During the install process, you are asked whether to install cli-phpgt or gui-phpgt, which automate the creation of new projects, serve your applications locally and deploy to live servers, through a simple command-line or graphical user interface.

Manual installation

The functionality of the main codebase is installed using Composer, packed at https://packagist.org/packages/brightflair/php.gt .

The brightflair/php.gt package needs to be added to the require block of your project's Composer configuration, pointing to at least version 2.0.0 .

An example composer.json:

{
    "name":         "you/your-new-app",
    "description":  "Your new app is right here",
    "homepage":     "http://example.org/",
    "type":         "library",

    "require": {
        "brightflair/php.gt": "2.0.*",
    },

    "prefer-stable": true
}

TODO:

  • installing using git or a zip/tarball
  • Use the blank blueprint composer install command
  • laying out your new blank project
  • serving the project
  • using your own webserver
  • blueprints for other projects
  • behind the scenes: composer create-project brightflair/gt-blueprint-blank:*
Clone this wiki locally