PHPackages                             sqd/phpgists - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sqd/phpgists

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sqd/phpgists
============

Set of php functions and tools to help with CCN projects

1.0.0(6y ago)06[1 PRs](https://github.com/Mandorlo/PhpGists/pulls)GPL-3.0-or-laterPHPCI failing

Since Nov 12Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Mandorlo/PhpGists)[ Packagist](https://packagist.org/packages/sqd/phpgists)[ RSS](/packages/sqd-phpgists/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

PhpGists
========

[](#phpgists)

This is a set of PHP functions and tools to help build my PHP projects.

run a phpunit test
==================

[](#run-a-phpunit-test)

You can install phpunit globally with `composer global require phpunit`.

Once it's installed, run something like : `phpunit .\tests\ArrayTest.php` to run the ArrayTest tests for example.

Configure debugging with vscode and xdebug
==========================================

[](#configure-debugging-with-vscode-and-xdebug)

On Windows
----------

[](#on-windows)

- download [xdebug](https://xdebug.org/download.php) and place in your php ext directory (where there are a lot of php\_xxx.dll files)
- in your php.ini add the following lines (you can change the port if you want)

```
zend_extension=[absolute path to your php_xdebug.dll]
xdebug.remote_enable=1
xdebug.remote_autostart = 1
xdebug.remote_port=9900
xdebug.remote_log=[choose an absolute path to xdebug.log]

```

To debug a script, no need to use xdebug, just use the default vscode script config

On Linux
--------

[](#on-linux)

- `sudo apt-get install php-xdebug`
- add the following lines in /etc/php/7.x/mods-available/xdebug.ini

```
xdebug.show_error_trace = 1
xdebug.remote_enable=1
xdebug.remote_autostart = 1

```

- `sudo service apache2 restart`

How to use XDebug
-----------------

[](#how-to-use-xdebug)

- check that xdebug is ok by running `php -i | grep xdebug`
- in vscode configure xdebug on port 9900 (the one you put in php.ini)

To debug something with xdebug (typically a phpunit test):

- place a breakpoint somewhere
- run the xdebug listener in vscode
- run the command you want like `phpunit ./tests/ArrayTest.php`
- if you want to run only some functions, in the test file, add a `--filter pattern` argument in the phpunit command line

Documentation
=============

[](#documentation)

Install phpDocumentor on Windows
--------------------------------

[](#install-phpdocumentor-on-windows)

- download the phpdoc.phar from the [phpDocumentor website](https://www.phpdoc.org/) and add it to your PATH
- create in the same folder as phpdoc.phar, a phpdoc.cmd with this line : `@php "%~dp0phpdoc.phar" %* `)

Generate the HTML doc
---------------------

[](#generate-the-html-doc)

- cd in the project and run `phpdoc.cmd -d ./src -t ./docs`

Tools
=====

[](#tools)

There are some useful tools to help developping this module for example :

- `php ./tools/main.php create_test Array` to create a new test file to test the functions in file 'Array.php'

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance53

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2378d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/887629f23ffe74e77e753e13f05702df2969d01af33a0bd7bd60aec348cc04b7?d=identicon)[Mandorlo](/maintainers/Mandorlo)

---

Top Contributors

[![Mandorlo](https://avatars.githubusercontent.com/u/29985279?v=4)](https://github.com/Mandorlo "Mandorlo (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sqd-phpgists/health.svg)

```
[![Health](https://phpackages.com/badges/sqd-phpgists/health.svg)](https://phpackages.com/packages/sqd-phpgists)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
