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.
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.
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. :)
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.
If you have found this work useful and would like to contribute financially, Bitcoin tips are always welcome! 1Af56Nxauv8M1ChyQxtBe1yvdp2jtaB1GF |