Skip to content

Commit

Permalink
Support installation via composer
Browse files Browse the repository at this point in the history
closes #1468
  • Loading branch information
ddelbondio committed Mar 3, 2014
1 parent c93755f commit c7e6fb6
Show file tree
Hide file tree
Showing 5 changed files with 419 additions and 345 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/
/composer.lock
46 changes: 46 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"]
}
19 changes: 19 additions & 0 deletions etc/composer/bin/agavi
Original file line number Diff line number Diff line change
@@ -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');

Loading

0 comments on commit c7e6fb6

Please sign in to comment.