Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Added Composer to documentation

  • Loading branch information...
commit 738ec3b5a505542d2d3f986acbeadbbcd330ce3f 1 parent b691da1
@dcsg dcsg authored
Showing with 7 additions and 14 deletions.
  1. +7 −14
@@ -23,23 +23,16 @@ Make sure you have XHProf installed.
If you are on a mac you can easily install it via [Macports][2]
sudo port install php5-xhprof
-### Get the bundle
+### Composer
-To install the bundle, place it in the `src/Jns/Bundle` directory of your project
-(so that it lives at `src/Jns/Bundle/XhprofBundle`). You can do this by adding
-the bundle as a submodule, cloning it, or simply downloading the source.
+Add the following dependencies to your projects composer.json file:
- git submodule add src/Jns/Bundle/XhprofBundle
+ "require": {
+ # ..
+ "jns/xhprof-bundle": "dev-master"
+ # ..
+ }
-### Add the Jns namespace to your autoloader
-If this is the first Jns bundle in your Symfony 2 project, you'll
-need to add the `Jns` namespace to your autoloader. This file is usually located at `app/autoload.php`.
- $loader->registerNamespaces(array(
- 'Jns' => __DIR__.'/../src'
- // ...
- ));
### Initializing the bundle

0 comments on commit 738ec3b

Please sign in to comment.
Something went wrong with that request. Please try again.