ampproject / ampproject/px-toolbox-php

Add data formatting abstraction layer

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
8
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### Feature Description

The PX Engine will need a standardized/normalized way of providing unit-based and/or unit-less values in such a way that an outside interface can make sense of it.

We can start with adapting the way Lighthouse uses scores, values and units and see whether that covers all of our expected use cases.

Ideally, we would want a way to provide such values as a Value Object that comes with all the needed logic to allow for both numerical analysis/comparison as well as string-based representation. We'll need to consider localization as well.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the feature description and how Lighthouse represents scores, values, and units. Clarify the expected unit-based and unit-less cases, numerical comparison behavior, string representation, and localization requirements before implementation; done should be an agreed abstraction that covers the expected use cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.