1. Go to this page and download the library: Download raulfraile/ladybug-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
raulfraile / ladybug-bundle example snippets
php
class UserController extends Controller
{
public function userAction($username) {
ladybug_dump($username); // or just ld($username)
}
}
jinja
{{ user.username|ladybug_dump }}
php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new RaulFraile\Bundle\LadybugBundle\RaulFraileLadybugBundle(),
);
}
php
$var = array(1, 2, 3);
ladybug_dump($var)
php
ladybug_dump($this->getRequest())
php
class TestController
{
public function testAction()
{
$var = 1;
$this->get('ladybug')->log($var);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.