Browse Source

Download phreeze using composer

Hamilton Turner 10 years ago
parent
commit
208f363a9e

+ 2 - 0
frameworks/PHP/phreeze/.gitignore

@@ -0,0 +1,2 @@
+vendor
+deploy/php-fpm.pid

+ 7 - 0
frameworks/PHP/phreeze/composer.json

@@ -0,0 +1,7 @@
+{
+    "require": {
+        "php": ">=5.3.0",
+        "phreeze/phreeze": "dev-master"
+    }
+}
+

+ 47 - 0
frameworks/PHP/phreeze/composer.lock

@@ -0,0 +1,47 @@
+{
+    "_readme": [
+        "This file locks the dependencies of your project to a known state",
+        "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
+        "This file is @generated automatically"
+    ],
+    "hash": "d98fc6f44a6c19e5163a5436e223a8ca",
+    "packages": [
+        {
+            "name": "phreeze/phreeze",
+            "version": "dev-master",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/jasonhinkle/phreeze.git",
+                "reference": "7610b34e24ca7cc6d368f7dcb212c8b64d76d6bf"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/jasonhinkle/phreeze/zipball/7610b34e24ca7cc6d368f7dcb212c8b64d76d6bf",
+                "reference": "7610b34e24ca7cc6d368f7dcb212c8b64d76d6bf",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">=5.3.0"
+            },
+            "type": "library",
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "LGPL-2.1"
+            ],
+            "description": "A lightweight ORM + MVC framework for PHP",
+            "time": "2014-10-13 01:29:56"
+        }
+    ],
+    "packages-dev": [],
+    "aliases": [],
+    "minimum-stability": "stable",
+    "stability-flags": {
+        "phreeze/phreeze": 20
+    },
+    "prefer-stable": false,
+    "prefer-lowest": false,
+    "platform": {
+        "php": ">=5.3.0"
+    },
+    "platform-dev": []
+}

+ 5 - 1
frameworks/PHP/phreeze/index.php

@@ -1,7 +1,11 @@
 <?php
 /** @package    HELLO WORLD */
 
-set_include_path('libs/');
+set_include_path(
+		'./libs/' . PATH_SEPARATOR .
+		'./vendor/phreeze/phreeze/libs/' . PATH_SEPARATOR .
+		get_include_path()
+);
 
 /* require framework libs */
 require_once 'verysimple/Phreeze/Dispatcher.php';

+ 6 - 1
frameworks/PHP/phreeze/install.sh

@@ -1,3 +1,8 @@
 #!/bin/bash
 
-fw_depends php nginx
+fw_depends php nginx composer
+
+PHP_HOME=${IROOT}/php-5.5.17
+${PHP_HOME}/bin/php $IROOT/composer.phar install \
+  --no-interaction --working-dir $TROOT \
+  --no-progress --optimize-autoloader