timosh / php-activerecord-profiler-service
install this to show sql queries in silex profiler
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:HTML
Requires
- php-activerecord/php-activerecord: 1.1
- silex/silex: ~2.0
- silex/web-profiler: ^2.0
- symfony/twig-bridge: ^3.1
- timosh/php-activerecord-service-provider: ^1.0
- twig/twig: ~1.0
This package is not auto-updated.
Last update: 2025-01-18 21:14:14 UTC
README
PHP ActiveRecordProfilerService for Silex2. Actualy for using it you must install php activerecord service provider https://packagist.org/packages/timosh/php-activerecord-service-provider (it implements phpactiverecord.org to you profject) awcose for using profiler you have to install silex profiler and twig.
#Using
$app->register(new \ActiveRecordServiceProvider\ActiveRecord(array(
'ar.model_path' => __DIR__.'/Model',
'ar.default_connection' => 'development',
'ar.connections' => array(
'development' => 'mysql://user:password@host/database'
),
'db.active_record.logger'=> new ActiveRecordServiceProvider\Logger(), //here we enabling our logger
))
);