Download the PHP package lsmj/phrint without Composer

On this page you can find all versions of the php package lsmj/phrint. 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 phrint

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, 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

Table of Contents

Installation

Install with Composer

Uninstall:

Usage

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:

or in public/index.php:

Methods

p (print)

Prints the input type and data on a clutter free bleached yellow background. Especially useful when tracking state types or data. Objects are JSON encoded.

p(mixed $input)

Code example:

Result:


c (console)

Prints the input type and content without formatting. Useful when printing messages in a console.

c(mixed $input)


m (message)

Prints the input data on a clutter free bleached yellow background. Useful when printing messages that needs to be easy to find visually.

m(string|int $input)


l (list)

Explodes and prints a comma-seperated string as a vertical list on a bleached yellow background. This is useful for viewing or counting elements (like in a CSV heading), creating a new array from the list, manipulating the element names or copying and pasting the resulting list into a spreadsheet.

l(string $input, [string $delimiter = "'"], [string $remove_string = null])

Code example:

Result:

The default delimiter is , but a different one can be passed as the second argument. The third argument is an optional regex function that replaces the given input string with an empty string.

Code example:

Result:


All versions of phrint with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 lsmj/phrint contains the following files

Loading the files please wait ....