sitetheory / profiler-storage-bundle
Sitetheory ProfilerStorageBundle
Installs: 47 608
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 9
Forks: 4
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.5.9
- symfony/dependency-injection: >=2.7 <4.0
- symfony/framework-bundle: >=2.7 <4.0
- symfony/yaml: >=2.7 <4.0
Requires (Dev)
- phpunit/phpunit: ~5.5|~5.6|~7.0|~7.1
Suggests
- symfony/web-profiler-bundle: To use the data collector.
README
Sitetheory Profiler Storage Bundle for Symfony 2.8+
Package Information
Code Inspection
Travis CI
Scrutinizer
Overview
We'll be maintaining the following Profiler Bindings for the foreseeable future:
- MemCache
- MongoDB
- MySQL
- PDO
- Redis
- SQLite
Installation
Composer
Add this bundle to your Composer Package and follow the configuration below.
composer require sitetheory/profiler-storage-bundle
If you are using MongoDB, you will also need to add the MongoDB Driver. Instructions are available in the official repository: github.com/mongodb/mongo-php-library.
Configuration
Enable the Bundle:
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Sitetheory\Bundle\ProfilerStorageBundle\SitetheoryProfilerStorageBundle() ); // ... } // ... }
Add the following to your config.yml
to control the location for Profiler Storage:
Mongo
sitetheory_profiler_storage: profiler: defaultStorage: false class: Sitetheory\Bundle\ProfilerStorageBundle\Profiler\MongoDbProfilerStorage dsn: "mongodb://%user%:%password%@%host%:%port%/%name%/profiler" ttl: 3600
MySQL
sitetheory_profiler_storage: profiler: defaultStorage: false class: Sitetheory\Bundle\ProfilerStorageBundle\Profiler\MysqlProfilerStorage dsn: "mysql:host=%host%;port=%port%;dbname=%name%" username: "%user%" password: "%password%" ttl: 3600