PHP code example of xolegator / pinba_extension
1. Go to this page and download the library: Download xolegator/pinba_extension 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/ */
xolegator / pinba_extension example snippets
bash
sudo dnf copr enable xolegator/pinba
sudo dnf install php-pinba
dockerfile
FROM php:8.5-fpm
RUN apt-get update \
&& apt-get install -y --no-install-recommends $PHPIZE_DEPS git libprotobuf-c-dev \
&& git clone --depth 1 https://github.com/XOlegator/pinba_extension.git /usr/src/pinba \
&& cd /usr/src/pinba \
&& phpize && ./configure --enable-pinba && make -j"$(nproc)" && make install \
&& docker-php-ext-enable pinba \
&& rm -rf /usr/src/pinba /var/lib/apt/lists/*
RUN printf "pinba.enabled=1\npinba.server=pinba-engine:30002\n" \
> "$PHP_INI_DIR/conf.d/zz-pinba.ini"