{"repo":"laracraft-tech/laravel-xhprof","free":true,"listed":false,"github":"https://github.com/laracraft-tech/laravel-xhprof","clone":"git clone https://github.com/laracraft-tech/laravel-xhprof.git","description":"Easy XHProf setup to profile your Laravel application!","language":"PHP","stars":235,"topics":["laravel","performance","php","profiler","profiling","xhprof"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Introduction Laravel XHProf gives you a simple way to profile your Laravel application using the well-known XHProf PHP extension, originally developed by Facebook. It also walks you through setting up the XHProf UI, which lets you visualize, save, and analyze your profiling results. Installation First, you'll need to install the PHP extension. We highly recommend using Ondrej's PPA, since it's well maintained and covers pretty much every PHP version. Native PHP environment If you're running PHP natively on your system, just install the XHProf extension: Note: Graphviz is required to generate callgraphs. Laravel Sail environment If you're using Laravel Sail, here's how to set things up: Note: The provided Laravel Sail Dockerfile already uses Ondrej's PPA. Install the Package Install the UI We use the fork by \"preinheimer\", which is the one recommended in the official PHP docs: https://www.php.net/manual/en/xhprof.requirements.php Database The UI package stores and reads its profiling data from a table that is hard coded to details . If you already have a table with that name in your database, you'll need to take a few extra steps. Otherwise, here's the straightforward path: If you don't already have a details table in your database: If you already have a details table in your database: In this case we recommend using a separate database just for XHProf. Note: don't forget to create a user that has privileges on the new database! Config Now let's configure a few settings: Usage","default_branch":null,"files":null,"tree":[],"storefront":"/r/laracraft-tech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/laracraft-tech/laravel-xhprof/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}