PHPackages                             lsmj/phrint - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. lsmj/phrint

ActiveLibrary[Testing &amp; Quality](/categories/testing)

lsmj/phrint
===========

PHP state testing functions

v1.2.0(5y ago)0141MITPHPPHP &gt;=5.3.0

Since Jun 18Pushed 5y agoCompare

[ Source](https://github.com/lsmj/phrint)[ Packagist](https://packagist.org/packages/lsmj/phrint)[ RSS](/packages/lsmj-phrint/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)DependenciesVersions (18)Used By (0)

phrint (/prɪnt/)
================

[](#phrint-prɪnt)

Simple and visual state testing for PHP programming. Works well when checking if data is returned by a method and/or quickly figuring out the data type. The p method is particularily useful for temporarily displaying data on an html page. This is especially effective in combination with [hot reloading](https://www.browsersync.io/), so you can work on your method while seeing the returned result update everytime you save. The c (console) method is useful for printing out data in a console during testing.

[![phrint_array](https://user-images.githubusercontent.com/35132192/60960803-0ed02300-a30b-11e9-9bfd-72ce8fbc713c.png)](https://user-images.githubusercontent.com/35132192/60960803-0ed02300-a30b-11e9-9bfd-72ce8fbc713c.png)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
    - [Install with Composer](#install-with-composer)
- [Usage](#usage)
    - [Auto-load and import class](#auto-load-and-import-class)
- [Methods](#methods)
    - [p (print)](#p-print)
    - [c (console)](#c-console)
    - [m (message)](#m-message)
    - [l (list)](#l-list)

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

[](#installation)

### Install with Composer

[](#install-with-composer)

```
composer require lsmj/phrint --dev
```

Uninstall:

```
composer remove lsmj/phrint --dev
```

Usage
-----

[](#usage)

### Auto-load and import class

[](#auto-load-and-import-class)

Require Composer's autoload.php if you're not using a framework that already takes care of this, like Laravel. Import the class with `use lsmj\phrint`.

index.php:

```
