2017 © Pedro Peláez
 

library utils

PHP Helpers

image

bulldog/utils

PHP Helpers

  • Friday, July 27, 2018
  • by levidurfee
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Utils

Just some handy functions that we find useful packaged in a very lightweight package., (*1)

Functions

Dump and Die

dd a simple implementation of die dump., (*2)

<?php
Bulldog\dd($variable);

Dump

dump var_dump, with pre tags if it is called from the browser., (*3)

<?php
Bulldog\dump($variable);

WriteLine

WriteLine writes a string to the console then the newline character., (*4)

<?php
Bulldog\WriteLine("Hello, World!");

PrintCode

PrintCode echos out an optional heading tag, then code wrapped in pre and code tags., (*5)

<?php
Bulldog\PrintCode("Console.WriteLine", "C#");

Slugify

Slugify creates a hyphenated version of a string that can be used for friendly URLs., (*6)

<?php
Bulldog\Slugify("Article on the evolution of candy bars.");

ShortHash

ShortHash creates a short hash using the first 10 characters of a SHA512 hash. It accepts an optional parameter for the length of the hash., (*7)

<?php
Bulldog\ShortHash(time(), 5);

The Versions

27/07 2018

dev-master

9999999-dev

PHP Helpers

  Sources   Download

MIT

27/07 2018

v1.0.0

1.0.0.0

PHP Helpers

  Sources   Download

MIT