PHPackages                             cliffordvickrey/crosstabs - 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. cliffordvickrey/crosstabs

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

cliffordvickrey/crosstabs
=========================

PHP Crosstabs

1.2.0(2y ago)193↓100%MITPHPPHP &gt;=8.2

Since Sep 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cliffordvickrey/crosstabs)[ Packagist](https://packagist.org/packages/cliffordvickrey/crosstabs)[ RSS](/packages/cliffordvickrey-crosstabs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (18)Used By (0)

CliffordVickrey\\Crosstabs
==========================

[](#cliffordvickreycrosstabs)

Highly customizable abstraction for generating SPSS-like tabulations, cross-tabulations (also known as crosstabs or contingency tables), and layered cross-tabulations in PHP. These are useful in showing the relationship between two or more categorical variables.

[![Build Status](https://github.com/cliffordvickrey/crosstabs/actions/workflows/build.yml/badge.svg)](https://github.com/cliffordvickrey/crosstabs/actions)

Requirements
------------

[](#requirements)

- PHP 8.2 or higher

Suggested Requirements
----------------------

[](#suggested-requirements)

Ensure that the `intl` and `bcmath` extensions are installed for, respectively, international number formatting and better mathematical precision.

Installation
------------

[](#installation)

Run the following to install this library:

```
$ composer require cliffordvickrey/crosstabs
```

Basic usage
-----------

[](#basic-usage)

Here, we generate a crosstab that shows the browsers of a website's visitors, as well as client operating system.

```
