Skip to content

Commit

Permalink
added composer
Browse files Browse the repository at this point in the history
  • Loading branch information
liuggio committed Jun 26, 2012
1 parent dc2d489 commit f267d26
Showing 1 changed file with 44 additions and 26 deletions.
70 changes: 44 additions & 26 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,23 +18,53 @@ With PHPExcel you can create: xls, ods, pdf and more.






## INSTALLATION ## INSTALLATION COMPOSER


1 Add the following entry to ``deps`` the run ``php bin/vendors install``. 1 Add to composer.json to the `require` key


``` yaml ```
[n3bStreamresponse] "liuggio/excelbundle": "dev-master",
git=https://github.com/liuggio/Symfony2-StreamResponse.git ```
target=n3b/src/n3b/Bundle/Util/HttpFoundation/StreamResponse


[phpExcel] and add the repositories:
git=https://github.com/liuggio/PHPExcel.git
target=phpexcel


[liuggioExcelBundle]
git=http://github.com/liuggio/ExcelBundle.git
target=/bundles/liuggio/ExcelBundle
``` ```
"repositories": {
"n3bStreamresponse": {
"type": "package",
"package": {
"name": "n3bStreamresponse",
"version": "master",
"source": {
"url": "git://github.com/liuggio/Symfony2-StreamResponse.git",
"type": "git",
"reference": "master"
},
"autoload": {
"psr-0": { "n3b\\Bundle\\Util\\HttpFoundation\\StreamResponse": "n3b/src" }
},
"target-dir": "n3b/src/n3b/Bundle/Util/HttpFoundation/StreamResponse"
}
},
"phpExcel": {
"type": "package",
"package": {
"name": "phpExcel",
"version": "master",
"source": {
"url": "git://github.com/liuggio/PHPExcel.git",
"type": "git",
"reference": "master"
},
"autoload": {
"classmap": ["lib/"]
}
}
}
},
```



2 Register the bundle in ``app/AppKernel.php`` 2 Register the bundle in ``app/AppKernel.php``


Expand All @@ -44,20 +74,9 @@ With PHPExcel you can create: xls, ods, pdf and more.
new liuggio\ExcelBundle\liuggioExcelBundle(), new liuggio\ExcelBundle\liuggioExcelBundle(),
); );
``` ```



3 Register namespace in ``app/autoload.php`` 3 Register the prefix for the library into the autoload.php

``` php
$loader->registerNamespaces(array(
// ...
'n3b\\Bundle\\Util\\HttpFoundation\\StreamResponse' => __DIR__.'/../vendor/n3b/src',

'liuggio' => __DIR__.'/../vendor/bundles',
));
```


4 Register the prefix for the library


``` php ``` php
$loader->registerPrefixes(array( $loader->registerPrefixes(array(
Expand All @@ -69,7 +88,6 @@ With PHPExcel you can create: xls, ods, pdf and more.
``` ```





## AVAILABLE SERVICES ## AVAILABLE SERVICES


If you want write If you want write
Expand Down

0 comments on commit f267d26

Please sign in to comment.