2017 © Pedro PelĂĄez
 

project tools

Toolbox

image

granam/tools

Toolbox

  • Friday, July 20, 2018
  • by jaroslavtyc
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12,308 Installations
  • PHP
  • 16 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 12 % Grown

The README.md

Value describer

use namespace Granam\Tools\ValueDescriber;

// "instance of \stdClass'
echo ValueDescriber::describe(new \stdClass());

// "array {}"
echo ValueDescriber::describe([]);

// "resource"
echo ValueDescriber::describe(tmpfile());

// "123,123.45,'123','123.45',array {\n  0 => string(3) "bar"},instance of \stdClass"
echo ValueDescriber::describe(123, 123.45, '123', '123.45', ['bar'], new \stdClass());

File upload exception

if ($_FILES['user_attachment1']['error'] === UPLOAD_ERR_OK) {
    // upload successful
} else {
// File of name 'damn_big.png' has not been uploaded (The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form: 2000)
    throw new FileUploadException("File of name '{$_FILES['user_attachment1']['name']}' has not been uploaded", $_FILES['user_attachment1']['error']);
}

Installation

composer require granam/tools

The Versions

20/07 2018
22/02 2017

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/jaroslavtyc/granam-tools

Toolbox

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

php object string toolbox

22/02 2017
19/02 2017
18/02 2017
17/02 2017
17/02 2017

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/jaroslavtyc/granam-tools

Toolbox

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

php object string toolbox

17/02 2017
03/03 2016

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/jaroslavtyc/granam-tools

Toolbox

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

php object string toolbox

03/03 2016

1.0.0

1.0.0.0 https://github.com/jaroslavtyc/granam-tools

Toolbox

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

php object string toolbox