bobel/helpers

Helpful library for operating with URI, Arrays, Dates, Links and Text.

v1.0.8 2021-05-22 05:41 UTC

This package is auto-updated.

Last update: 2024-04-22 11:58:21 UTC


README

Latest Stable Version License

Library of helpful methods for PHP.

  • DateTime Helper
  • Enumerable Helper
  • Link Helper
  • Numeric Helper
  • Text Helper
  • Uri Helper

Just install the package and it is ready to use!

Requirements

  • PHP >= 7.1

Installation

composer require bobel/helpers

Usage

echo \Bobel\Helpers\Text::getRandomString($length = 16);

// Outputs Fb4tUW78cUuZZdPS


echo \Bobel\Helpers\Numeric::formatPrice(4000200.5);

// Outputs 4 000 200.50


\Bobel\Helecho pers\Link::setParam('param1', 'newValue', 'https://fake.url/?param1=value1&param2=value2')

// Outputs https://fake.url/?param1=newValue&param2=value2

Credits