2017 © Pedro PelĂĄez
 

library caret-notation

^B A dead-simple PHP library to add caret notation in order to safely show strings that contain ASCII control characters (unprintable characters)

image

clue/caret-notation

^B A dead-simple PHP library to add caret notation in order to safely show strings that contain ASCII control characters (unprintable characters)

  • Friday, June 19, 2015
  • by clue
  • Repository
  • 1 Watchers
  • 1 Stars
  • 228 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

clue/caret-notation Build Status

^B A dead-simple PHP library to add caret notation in order to safely show strings that contain ASCII control characters (unprintable characters), (*1)

Quickstart example

Once installed, you can use the following code to use caret notation for any string that (may possibly) contain binary control characters:, (*2)

$encoder = new Encoder();

$string = "Hello\r\nworld\0";
// Output: Hello^M^Jworld^@
echo $encoder->encode($string);

$string = "No control chars";
// Output: No control chars
echo $encoder->encode($string);

Install

The recommended way to install this library is through composer. New to composer?, (*3)

{
    "require": {
        "clue/caret-notation": "~0.2.0"
    }
}

License

MIT, (*4)

The Versions

19/06 2015

dev-master

9999999-dev https://github.com/clue/php-caret-notation

^B A dead-simple PHP library to add caret notation in order to safely show strings that contain ASCII control characters (unprintable characters)

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Christian LĂŒck

binary encoding ascii hexdump control characters caret notation

19/06 2015

v0.2.0

0.2.0.0 https://github.com/clue/php-caret-notation

^B A dead-simple PHP library to add caret notation in order to safely show strings that contain ASCII control characters (unprintable characters)

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Christian LĂŒck

binary encoding ascii hexdump control characters caret notation

19/06 2015

v0.1.0

0.1.0.0 https://github.com/clue/php-caret-notation

^B A dead-simple PHP library to add caret notation in order to safely show strings that contain ASCII control characters (unprintable characters)

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Christian LĂŒck

binary encoding ascii hexdump control characters caret notation