Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
/ blob-common Public archive

A PHP library with handy, reusable functions for sanitizing, formatting, and manipulating data.

License

Notifications You must be signed in to change notification settings

Blobfolio/blob-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 17, 2025
1a143ed · Mar 17, 2025
Mar 17, 2025
Mar 17, 2021
Mar 17, 2025
Sep 15, 2018
Feb 22, 2019
Mar 17, 2025
Nov 29, 2021
Jun 17, 2018
Sep 1, 2019
Aug 1, 2019
Jul 3, 2017
May 2, 2018
Jul 16, 2024
Mar 17, 2021
Jul 16, 2024
Jul 16, 2024

Repository files navigation

blob-common

A PHP library with handy, reusable functions for sanitizing, formatting, and manipulating data.

For information about the plugin Tutan Common, which repackages and extends these functions for WordPress environments, click here.

Build Status

 

Table of Contents

  1. Requirements
  2. Installation
  3. Reference
  4. License

 

Requirements

blob-common requires PHP 7.0+ with the following modules:

  • BCMath or GMP
  • DOM
  • Fileinfo
  • Filter
  • JSON
  • MBString
  • SimpleXML

UTF-8 is used for all string encoding. This could create conflicts on environments using something else.

The WebP functionality additionally requires access to server-side cwebp and gif2webp binaries. See the linked reference for more details.

 

Installation

Use Composer:

composer require "blobfolio/blob-common:dev-master"

Or grab the compiled Phar and include it in your project:

require_once('bin/blob-common.phar');

Note: The Phar is gzipped so PHP needs to have gzip capabilities to be able to read it. :)

 

License

Copyright © 2018 Blobfolio, LLC <[email protected]>

This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <[email protected]>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

Donations

Bitcoin QR If you have found this work useful and would like to contribute financially, Bitcoin tips are always welcome!

1Af56Nxauv8M1ChyQxtBe1yvdp2jtaB1GF

About

A PHP library with handy, reusable functions for sanitizing, formatting, and manipulating data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published