freshbrewedweb/readable-measurements

PHP utility to extract measurements from human readable form.

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/freshbrewedweb/readable-measurements

dev-master 2017-05-26 19:01 UTC

This package is auto-updated.

Last update: 2025-10-08 18:05:00 UTC


README

PHP utility to extract measurements from human readable form.

Usage

$string = "10-20 feet";
$measurement = new ReadableMeasurements( $string );

echo $measurement->get();

Results in ['value' => [10, 20], 'unit' => 'feet']

Demo

View the demo here.

API

  • get gets the resulting matches.