2017 © Pedro Peláez
 

library utility

CakePHP Utility classes such as Inflector, String, Hash, and Security

image

cakephp/utility

CakePHP Utility classes such as Inflector, String, Hash, and Security

  • Thursday, July 19, 2018
  • by cakephp
  • Repository
  • 32 Watchers
  • 45 Stars
  • 383,326 Installations
  • PHP
  • 35 Dependents
  • 2 Suggesters
  • 11 Forks
  • 0 Open issues
  • 100 Versions
  • 18 % Grown

The README.md

Total Downloads License, (*1)

CakePHP Utility Classes

This library provides a range of utility classes that are used throughout the CakePHP framework, (*2)

What's in the toolbox?

Hash

A Hash (as in PHP arrays) class, capable of extracting data using an intuitive DSL:, (*3)

$things = [
    ['name' => 'Mark', 'age' => 15],
    ['name' => 'Susan', 'age' => 30],
    ['name' => 'Lucy', 'age' => 25]
];

$bigPeople = Hash::extract($things, '{n}[age>21].name');

// $bigPeople will contain ['Susan', 'Lucy']

Check the official Hash class documentation, (*4)

Inflector

The Inflector class takes a string and can manipulate it to handle word variations such as pluralizations or camelizing., (*5)

echo Inflector::pluralize('Apple'); // echoes Apples

echo Inflector::singularize('People'); // echoes Person

Check the official Inflector class documentation, (*6)

Text

The Text class includes convenience methods for creating and manipulating strings., (*7)

Text::insert(
    'My name is :name and I am :age years old.',
    ['name' => 'Bob', 'age' => '65']
);
// Returns: "My name is Bob and I am 65 years old."

$text = 'This is the song that never ends.';
$result = Text::wrap($text, 22);

// Returns
This is the song
that never ends.

Check the official Text class documentation, (*8)

Security

The security library handles basic security measures such as providing methods for hashing and encrypting data., (*9)

$key = 'wt1U5MACWJFTXGenFoZoiLwQGrLgdbHA';
$result = Security::encrypt($value, $key);

Security::decrypt($result, $key);

Check the official Security class documentation, (*10)

Xml

The Xml class allows you to easily transform arrays into SimpleXMLElement or DOMDocument objects and back into arrays again, (*11)

$data = [
    'post' => [
        'id' => 1,
        'title' => 'Best post',
        'body' => ' ... '
    ]
];
$xml = Xml::build($data);

Check the official Xml class documentation, (*12)

The Versions

19/07 2018

dev-master

9999999-dev https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

19/07 2018

3.6.8

3.6.8.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

19/07 2018

3.6.9

3.6.9.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

31/05 2018

3.6.5

3.6.5.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

31/05 2018

3.6.6

3.6.6.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

31/05 2018

3.6.7

3.6.7.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

11/05 2018

3.6.3

3.6.3.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

11/05 2018

3.6.4

3.6.4.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

28/04 2018

3.5.x-dev

3.5.9999999.9999999-dev https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

28/04 2018

3.5.17

3.5.17.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

26/04 2018

3.6.2

3.6.2.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

24/03 2018

dev-3.next

dev-3.next https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

24/03 2018

3.6.0-RC1

3.6.0.0-RC1 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

24/03 2018

3.6.0-RC2

3.6.0.0-RC2 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

24/03 2018

3.6.1

3.6.1.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

24/03 2018

3.6.0

3.6.0.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

22/03 2018

3.5.15

3.5.15.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

08/02 2018

3.6.0-beta1

3.6.0.0-beta1 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

08/02 2018

3.6.0-beta2

3.6.0.0-beta2 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

08/02 2018

3.6.0-beta3

3.6.0.0-beta3 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

 

cakephp security utility inflector string hash

04/01 2018

3.5.11

3.5.11.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

04/01 2018

3.5.12

3.5.12.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

04/01 2018

3.5.13

3.5.13.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

04/01 2018

3.5.14

3.5.14.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

28/12 2017

3.5.10

3.5.10.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

11/12 2017

3.5.9

3.5.9.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

26/11 2017

3.5.7

3.5.7.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

26/11 2017

3.5.8

3.5.8.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

05/10 2017

3.5.4

3.5.4.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

05/10 2017

3.5.5

3.5.5.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

05/10 2017

3.5.6

3.5.6.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

02/09 2017

3.5.2

3.5.2.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

02/09 2017

3.5.3

3.5.3.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

25/08 2017

3.5.1

3.5.1.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

17/08 2017

3.5.0

3.5.0.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

13/08 2017

3.4.13

3.4.13.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

13/08 2017

3.4.x-dev

3.4.9999999.9999999-dev https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

13/08 2017

3.4.14

3.4.14.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

14/07 2017

3.5.0-RC1

3.5.0.0-RC1 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

14/07 2017

3.5.0-RC2

3.5.0.0-RC2 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

25/06 2017

3.4.10

3.4.10.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

25/06 2017

3.4.11

3.4.11.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

25/06 2017

3.4.12

3.4.12.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

25/06 2017

3.4.9

3.4.9.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

11/06 2017

3.4.8

3.4.8.0 https://cakephp.org

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

cakephp security utility inflector string hash

18/04 2017

3.4.6

3.4.6.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

18/04 2017

3.4.7

3.4.7.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

11/03 2017

3.4.4

3.4.4.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

11/03 2017

3.4.5

3.4.5.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

09/03 2017

3.4.3

3.4.3.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

16/02 2017

3.4.1

3.4.1.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

16/02 2017

3.4.2

3.4.2.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

28/01 2017

3.4.0

3.4.0.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

28/01 2017

3.4.0-RC4

3.4.0.0-RC4

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

22/01 2017

3.3.13

3.3.13.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

22/01 2017

3.3.14

3.3.14.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

22/01 2017

3.3.15

3.3.15.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

22/01 2017

3.3.16

3.3.16.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

18/01 2017

3.4.0-RC2

3.4.0.0-RC2

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

18/01 2017

3.4.0-RC3

3.4.0.0-RC3

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

08/01 2017

3.4.0-beta4

3.4.0.0-beta4

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

08/01 2017

3.4.0-RC1

3.4.0.0-RC1

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

06/01 2017

3.3.12

3.3.12.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

22/12 2016

3.4.0-beta1

3.4.0.0-beta1

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

22/12 2016

3.4.0-beta2

3.4.0.0-beta2

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

22/12 2016

3.4.0-beta3

3.4.0.0-beta3

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

14/12 2016

3.3.11

3.3.11.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

17/11 2016

3.3.10

3.3.10.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

17/11 2016

3.3.9

3.3.9.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

27/10 2016

3.3.7

3.3.7.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

27/10 2016

3.3.8

3.3.8.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

07/09 2016

3.3.4

3.3.4.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

07/09 2016

3.3.5

3.3.5.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

07/09 2016

3.3.6

3.3.6.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

23/08 2016

3.3.3

3.3.3.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

13/08 2016

3.3.0

3.3.0.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

13/08 2016

3.3.1

3.3.1.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

13/08 2016

3.3.2

3.3.2.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

10/08 2016

3.2.14

3.2.14.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

01/08 2016

3.3.0-RC1

3.3.0.0-RC1

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

28/07 2016

3.2.13

3.2.13.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

27/07 2016

3.3.0-beta3

3.3.0.0-beta3

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

14/07 2016

3.3.0-beta2

3.3.0.0-beta2

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

22/05 2016

3.3.0-beta

3.3.0.0-beta

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

21/05 2016

3.2.10

3.2.10.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

21/05 2016

3.2.11

3.2.11.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

21/05 2016

3.2.12

3.2.12.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

14/05 2016

3.2.9

3.2.9.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

20/04 2016

3.2.8

3.2.8.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

07/04 2016

3.2.7

3.2.7.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

14/03 2016

3.2.6

3.2.6.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

11/03 2016

3.2.5

3.2.5.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

06/03 2016

3.2.4

3.2.4.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

20/02 2016

3.2.3

3.2.3.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

11/02 2016

3.2.2

3.2.2.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

28/01 2016

3.1.x-dev

3.1.9999999.9999999-dev

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

28/01 2016

dev-3-1

dev-3-1

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

28/01 2016

3.1.10

3.1.10.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

28/01 2016

3.1.13

3.1.13.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT

28/01 2016

3.1.9

3.1.9.0

CakePHP Utility classes such as Inflector, String, Hash, and Security

  Sources   Download

MIT