2017 © Pedro Peláez
 

library variableutils

Handy utility methods for PHP variables

image

davek1312/variableutils

Handy utility methods for PHP variables

  • Saturday, March 25, 2017
  • by davek1312
  • Repository
  • 0 Watchers
  • 0 Stars
  • 40 Installations
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

davek1312/variableutils

Handy utility methods for PHP variables., (*1)

Installation

composer require davek1312/variableutils, (*2)

Usage

Strings

<?php
use Davek1312\VariableUtils\StringUtils;

// Checks if $string is null or ''
StringUtils::isEmptyOrNull($string);

// Checks if $string starts with $startsWith
StringUtils::startsWith($string, $startsWith);

// Checks if $string ends with $endsWith
StringUtils::endsWith($string, $endsWith);

// Checks if $string starts with $startsWith and $string ends with $endsWith
StringUtils::startsWithAndEndsWith($string, $startsWith, $endsWith);

// Checks if $string starts with $startsAndEndsWith and $string ends with $startsAndEndsWith
StringUtils::startsWithAndEndsWithSame($string, $startsAndEndsWith);

// Checks if $string contains $contains
StringUtils::contains($string, $contains);

The Versions

25/03 2017

dev-master

9999999-dev

Handy utility methods for PHP variables

  Sources   Download

MIT

The Development Requires

by David Kelly

utils variables

25/03 2017

v0.3.2

0.3.2.0

Handy utility methods for PHP variables

  Sources   Download

MIT

The Development Requires

by David Kelly

utils variables

26/02 2017

v0.3.1

0.3.1.0

Handy utility methods for PHP variables

  Sources   Download

MIT

The Development Requires

by David Kelly

utils variables

26/02 2017

v0.2.1

0.2.1.0

Handy utility methods for PHP variables

  Sources   Download

MIT

The Development Requires

by David Kelly

utils variables

26/02 2017

v0.1.1

0.1.1.0

Handy utility methods for PHP variables

  Sources   Download

MIT

The Development Requires

by David Kelly

utils variables

02/02 2017

v0.0.1

0.0.1.0

Handy utility methods for PHP variables

  Sources   Download

MIT

The Development Requires

by David Kelly

utils variables