2017 © Pedro Peláez
 

library phpfuncs

PHP user defined functions for quick use.

image

josephnc/phpfuncs

PHP user defined functions for quick use.

  • Saturday, June 30, 2018
  • by JosephNC
  • Repository
  • 1 Watchers
  • 1 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 280 % Grown

The README.md

PHPFuncs

PHP user defined functions for quick use on your projects., (*1)

Installation

PHP 5.6+ is required., (*2)

composer require josephnc/phpfuncs

Usage

require_once __DIR__ . '/vendor/autoload.php';

#use function JosephNC\PHPFuncs\<function_name_here>;

use function JosephNC\PHPFuncs\real_ip;
use function JosephNC\PHPFuncs\is_array_equal;

$array1 = [
    'foo' => 'bar',
    'bar' => 'foo',
];

$array2 = [
    'bar' => 'foo',
    'foo' => 'bar',
];

$ip_address = real_ip();
$equal      = is_array_equal($array1, $array2);

echo 'Here is your IP Address: ' . $ip_address . '<br>';

if ($equal) {
    echo 'Your arrays are equal!';
} else {
    echo 'Your arrays are not equal.';
}

Output:, (*3)

Here is your IP Address: 127.0.0.1
Your arrays are equal!

New Functions

If you will like your custom functions to be added to this repository, please contact me. Thanks., (*4)

The Versions

30/06 2018

dev-master

9999999-dev

PHP user defined functions for quick use.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Avatar JosephNC

16/05 2018

v1.0.2

1.0.2.0

PHP user defined functions for quick use.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Avatar JosephNC

12/05 2018

v1.0.1

1.0.1.0

PHP user defined functions for quick use.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Avatar JosephNC

28/04 2018

1.0

1.0.0.0

PHP user defined functions for quick use.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Avatar JosephNC