Download the PHP package laracraft-tech/laravel-xhprof without Composer

On this page you can find all versions of the php package laracraft-tech/laravel-xhprof. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-xhprof

Logo Laravel XHProf

Total Downloads Latest Stable Version License License

Introduction

Laravel XHProf provides you with a simple setup to profile your Laravel application with the well-known XHProf PHP extension originally developed by Facebook. It also leads you through the steps to install XHProf UI, a UI to visualize, save, and analyze the results of the profiling.

Installation

First, you'll need to install the PHP extension. It's highly recommended to use ondrejs ppa. It's well maintained and provides quite all PHP versions.

Normal environment

If you have a normal PHP environment, just install the XHProf extension:

Note: we need Graphviz to generate callgraphs.

Laravel Sail environment

If you are using laravel sail, here's a setup for you:

Note: The provided Laravel Sail Dockerfile already uses ondrejs ppa.

Install the Package

Install the UI

We are using the recommended fork by php.net from "preinheimer": https://www.php.net/manual/en/xhprof.requirements.php

Database

Since the database table name, which the UI package is using behind to store and read data from the database, is hard coded to details and you already may have a table named like that, you may need to take some additional steps. If not, here at first the simple way:


In case you DON'T already HAVE your own details table in your database:


In case you already HAVE an own details table in your database:

I recommend just using a different database.

Note: you also need to create a user who has privileges on that new database!

Config

Now let's configure some settings!

Usage

Just set XHPROF_ENABLED=true in your .env file and now every request you make to your application gets profiled. \ Visit <your-host>/vendor/xhprof/xhprof_html/ to see your profiling results.

Happy analyzing!

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.


All versions of laravel-xhprof with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
laravel/framework Version ^5.3|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package laracraft-tech/laravel-xhprof contains the following files

Loading the files please wait ....