Permalink
Browse files

Support installation via composer

closes #1468
  • Loading branch information...
ddelbondio committed Mar 3, 2014
1 parent c93755f commit c7e6fb65c30875f59bc31fc25d256f782e80e3cc
Showing with 419 additions and 345 deletions.
  1. +2 −0 .gitignore
  2. +46 −0 composer.json
  3. +19 −0 etc/composer/bin/agavi
  4. +1 −345 src/build/agavi/script/agavi.php
  5. +351 −0 src/build/agavi/script/agavi_wrapped.php
View
@@ -0,0 +1,2 @@
+/vendor/
+/composer.lock
View
@@ -0,0 +1,46 @@
+{
+ "name": "agavi/agavi",
+ "description": "Agavi is a full-featured MVC-style framework for PHP5 with a strong focus on structure, code reusability and flexibility.",
+ "keywords": ["framework", "mvc"],
+ "homepage": "http://agavi.org",
+ "type": "library",
+ "license": "LGPL-2.1+",
+ "authors": [
+ {
+ "name": "Agavi Contributors",
+ "homepage": "https://github.com/agavi/agavi/graphs/contributors"
+ }
+ ],
+ "support": {
+ "issues": "https://github.com/agavi/agavi/issues",
+ "wiki": "https://github.com/agavi/agavi/wiki",
+ "irc": "irc://irc.freenode.org/agavi"
+ },
+ "require": {
+ "php": ">=5.2.0",
+ "ext-dom": "*",
+ "lib-libxml": "*",
+ "ext-spl": "*",
+ "ext-reflection": "*",
+ "ext-pcre": "*",
+
+ "phing/phing": "~2.4"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~3.5"
+ },
+ "suggest": {
+ "phpunit/phpunit": "Install phpunit if you want to run your tests",
+ "ext-xsl": "Required only for transformation of pre 1.0 style configuration files",
+ "ext-tokenizer": "Enable the tokenizer extension allows Agavi to generate more efficient config-caches",
+ "ext-session": "If the session extension is disabled you'll have to build your own session storage system and hook it into agavi",
+ "ext-xmlrpc": "Enable the xmlrpc extension if you want to use XML-RPC features",
+ "ext-soap": "Enable the xmlrpc extension if you want to use Agavi's SOAP features",
+ "ext-pdo": "PDO is required for database connectors that use PDO as base",
+ "ext-iconv": "Enable iconv if you need to convert between other charset than iso-8859-1 and utf-8"
+ },
+ "autoload": {
+ "files": ["src/agavi.php"]
+ },
+ "bin": ["etc/composer/bin/agavi"]
+}
View
@@ -0,0 +1,19 @@
+#!/usr/bin/env php
+<?php
+
+ini_set('memory_limit', 4294967295);
+
+$agaviSourceDirectory = __DIR__ . '/../../../src';
+$composerVendorDir = __DIR__ . '/../../../../../';
+
+// inject the source directory argument
+array_splice($_SERVER['argv'], 1, 0, array('--agavi-source-directory', $agaviSourceDirectory));
+
+// when phing is installed via composer the version string always is PHING-DEV
+// but we can be sure to have the proper version installed
+define('DISABLE_PHING_VERSION_CHECK', true);
+
+// set up the include paths via composer
+require($composerVendorDir . '/autoload.php');
+require($agaviSourceDirectory . '/build/agavi/script/agavi_wrapped.php');
+
Oops, something went wrong.

0 comments on commit c7e6fb6

Please sign in to comment.