Browse Source

Download framework dynamically using composer

Hamilton Turner 10 years ago
parent
commit
bd1b13a8fd

+ 2 - 0
frameworks/PHP/php-codeigniter/.gitignore

@@ -7,3 +7,5 @@
 .DS_Store
 .DS_Store
 /tags
 /tags
 .idea
 .idea
+vendor
+deploy/php-fpm.pid

+ 6 - 0
frameworks/PHP/php-codeigniter/composer.json

@@ -0,0 +1,6 @@
+{
+    "require": {
+        "rogeriopradoj/codeigniter": "2.2.1-rc.2"
+    }
+}
+

+ 45 - 0
frameworks/PHP/php-codeigniter/composer.lock

@@ -0,0 +1,45 @@
+{
+    "_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": "92e99b460af6b4b46abd380a66a89f01",
+    "packages": [
+        {
+            "name": "rogeriopradoj/codeigniter",
+            "version": "2.2.1-rc.2",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/rogeriopradoj/codeigniter-composer.git",
+                "reference": "c3b605d2e5dc3752da7e6843daed31bcf87e225f"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/rogeriopradoj/codeigniter-composer/zipball/c3b605d2e5dc3752da7e6843daed31bcf87e225f",
+                "reference": "c3b605d2e5dc3752da7e6843daed31bcf87e225f",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">=5.2.4"
+            },
+            "type": "library",
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "OSL-3.0"
+            ],
+            "description": "A way to install CodeIgniter via composer",
+            "time": "2014-11-25 11:27:54"
+        }
+    ],
+    "packages-dev": [],
+    "aliases": [],
+    "minimum-stability": "stable",
+    "stability-flags": {
+        "rogeriopradoj/codeigniter": 5
+    },
+    "prefer-stable": false,
+    "prefer-lowest": false,
+    "platform": [],
+    "platform-dev": []
+}

+ 1 - 1
frameworks/PHP/php-codeigniter/index.php

@@ -56,7 +56,7 @@ if (defined('ENVIRONMENT'))
  * as this file.
  * as this file.
  *
  *
  */
  */
-	$system_path = 'system';
+	$system_path = 'vendor/rogeriopradoj/codeigniter/system';
 
 
 /*
 /*
  *---------------------------------------------------------------
  *---------------------------------------------------------------