Skip to content

Commit

Permalink
Add instructions for symfony 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Squazic committed Sep 27, 2012
1 parent b476c93 commit 81a8c64
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Expand Up @@ -83,6 +83,50 @@ and add the repositories:
new Liuggio\ExcelBundle\LiuggioExcelBundle(), new Liuggio\ExcelBundle\LiuggioExcelBundle(),
); );
``` ```

## INSTALLATION with deps file

1 Add to the following to your `deps` file, then run `php bin/vendors install`

``` yaml
[PHPExcel]
git=http://github.com/PHPOffice/PHPExcel.git
target=/phpexcel
version=origin/master

[n3bStreamresponse]
git=git://github.com/liuggio/Symfony2-StreamResponse.git
target=n3b/src/n3b/Bundle/Util/HttpFoundation/StreamResponse

[LiuggioExcelBundle]
git=https://github.com/liuggio/ExcelBundle.git
target=/bundles/Liuggio/ExcelBundle
```

2 Register the namespaces and prefixes in `app/autoload.php`:

``` php
$loader->registerNamespaces(array(
// ...
'n3b\\Bundle\\Util\\HttpFoundation\\StreamResponse' => __DIR__.'/../vendor/n3b/src',
'Liuggio' => __DIR__.'/../vendor/bundles',
));
$loader->registerPrefixes(array(
// ...
'PHPExcel' => __DIR__.'/../vendor/phpexcel/Classes',
));

```


3 Enable the bundle in `app/AppKernel.php`

``` php
$bundles = array(
// ...
new Liuggio\ExcelBundle\LiuggioExcelBundle(),
);
```






Expand Down

0 comments on commit 81a8c64

Please sign in to comment.