timosh / php-activerecord-profiler-service
install this to show sql queries in silex profiler
v1.1
2016-08-25 17:02 UTC
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-04-26 22:16:39 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
))
);