samius/tools

Strings, Math, Bitmaps, Email, Url simple tools

Maintainers

Details

github.com/samius/tools

Source

Issues

Installs: 382

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/samius/tools

1.5.8 2024-05-28 14:16 UTC

This package is auto-updated.

Last update: 2025-09-28 17:17:57 UTC


README

  • generate random strings from given character classes
  • remove diacritics from string
  • return Lorem ipsum text
  • generate pronounceable strings

Math tools

Percent holder - object, that has two internal values - amount and total. Can count percent, or return these two values so it is possible to make a fraction

Bitmap tools

  • Write a value to bitmap on given position and return the bitmap as an integer
  • Read a value from given position of the bitmap

Email

  • Simple regexp e-mail address validation

#URL

  • Add and remove query params from URL
  • Build url from parts (scheme, user, pass, host, port, path, query, anchor) without pecl_http extension (http_build_url())