1. Go to this page and download the library: Download jns/xhprof-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/ */
public function registerBundles()
{
// ...
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
// ...
$bundles[] = new Jns\Bundle\XhprofBundle\JnsXhprofBundle();
}
}
namespace Acme\FooBundle\Entity;
use Jns\Bundle\XhprofBundle\Entity\XhprofDetail as BaseXhprofDetail;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="details")
*/
class XhprofDetail extends BaseXhprofDetail
{
/**
* @var integer $id
*
* @ORM\Column(name="id", type="string", unique=true, length=17, nullable=false)
* @ORM\Id
*/
protected $id;
}
yaml
jns_xhprof:
skip_builtin_functions: true
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.