From 1a0fe75f816b4c622a10136a2e5c4bf76de1918b Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Sun, 1 Apr 2018 17:18:13 +0100 Subject: [PATCH] Basic project layout --- .gitignore | 3 +++ composer.json | 35 +++++++++++++++++++++++++++++++++++ gt | 26 ++++++++++++++++++++++++++ src/App.php | 8 ++++++++ 4 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 composer.json create mode 100644 gt create mode 100644 src/App.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e87c19e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/.idea +/vendor +*.phar \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..6481236 --- /dev/null +++ b/composer.json @@ -0,0 +1,35 @@ +{ + "name": "phpgt/cli", + "description": "Command line interface for common tasks.", + "keywords": [ + "phpgt", + "webengine", + "cli", + "server", + "build", + "taskrunner" + ], + + "license": "MIT", + + "authors": [ + { + "name": "Greg Bowler", + "email": "greg.bowler@g105b.com" + } + ], + + "autoload": { + "psr-4": { + "Gt\\Cli\\": "./src" + } + }, + + "require": { + + }, + + "bin": [ + "gt" + ] +} \ No newline at end of file diff --git a/gt b/gt new file mode 100644 index 0000000..a1ab0c4 --- /dev/null +++ b/gt @@ -0,0 +1,26 @@ +#!/usr/bin/env php +run(); \ No newline at end of file diff --git a/src/App.php b/src/App.php new file mode 100644 index 0000000..4f02a94 --- /dev/null +++ b/src/App.php @@ -0,0 +1,8 @@ +