2017 © Pedro Peláez
 

library bom-string

A small PHP library to handle byte order marks (BOM)

image

duncan3dc/bom-string

A small PHP library to handle byte order marks (BOM)

  • Monday, June 11, 2018
  • by duncan3dc
  • Repository
  • 2 Watchers
  • 6 Stars
  • 47,217 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

bom-string

A small PHP library to handle byte order marks (BOM), (*1)

release build coverage, (*2)

Installation

The recommended method of installing this library is via Composer., (*3)

Run the following command from your project root:, (*4)

$ composer require duncan3dc/bom-string

Usage

Remove the BOM from a string and get back a clean UTF-8 string, (*5)

use duncan3dc\Bom\Util;

$string = Util::removeBom($bomString);

There's also a stream filter available:, (*6)

use duncan3dc\Bom\StreamFilter;

stream_filter_register("bom-filter", StreamFilter::class);

$file = fopen($filename, "r");

stream_filter_append($file, "bom-filter");

while ($row = fgetcsv($file)) {
    print_r($row);
}

fclose($file);

Changelog

A Changelog has been available since the beginning of time, (*7)

Where to get help

Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter, (*8)

duncan3dc/bom-string for enterprise

Available as part of the Tidelift Subscription, (*9)

The maintainers of duncan3dc/bom-string and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more., (*10)

The Versions

11/06 2018

dev-master

9999999-dev https://github.com/duncan3dc/bom-string

A small PHP library to handle byte order marks (BOM)

  Sources   Download

Apache-2.0

The Requires

  • php ^7.1
  • ext-mbstring *

 

The Development Requires

utf-8 bom utf8 utf-16 utf16

21/03 2018

1.0.0

1.0.0.0 https://github.com/duncan3dc/bom-string

A small PHP library to handle byte order marks (BOM)

  Sources   Download

Apache-2.0

The Requires

  • ext-mbstring *
  • php ^7.1

 

The Development Requires

utf-8 bom utf8 utf-16 utf16

02/10 2016

0.2.0

0.2.0.0 https://github.com/duncan3dc/bom-string

A small PHP library to handle byte order marks (BOM)

  Sources   Download

Apache-2.0

The Requires

  • php ^5.6|^7.0

 

The Development Requires

utf-8 bom utf8 utf-16 utf16

15/05 2016

0.1.0

0.1.0.0 https://github.com/duncan3dc/bom-string

A small PHP library to handle byte order marks (BOM)

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6.0

 

The Development Requires

utf-8 bom utf8 utf-16 utf16