Skip to content
This repository has been archived by the owner on Jul 17, 2024. 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

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