PHPackages                             tessera-php/tessera-type-float - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tessera-php/tessera-type-float

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tessera-php/tessera-type-float
==============================

Tessera type: Float

06PHP

Since Feb 23Pushed 2mo agoCompare

[ Source](https://github.com/tessera-php/tessera-type-float)[ Packagist](https://packagist.org/packages/tessera-php/tessera-type-float)[ RSS](/packages/tessera-php-tessera-type-float/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Tessera Type: Float
===================

[](#tessera-type-float)

Тип с плавающей точкой для Tessera.

Установка
---------

[](#установка)

```
composer require tessera-php/tessera-type-float
```

Использование
-------------

[](#использование)

```
use Tessera\Type\Float\FloatType;
use Tessera\Type\Float\FloatData;

$type = new FloatType();

// Валидация
$type->validate(3.14);      // true
$type->validate('3.14');    // true
$type->validate(42);        // true
$type->validate('1.5e10');  // true
$type->validate(INF);       // false
$type->validate('nan');     // false
$type->validate('abc');     // false

// Нормализация
$data = $type->normalize('3.14');
echo $data->value;          // 3.14 (float)

// DTO
$data = new FloatData(123.456);
echo $data->value;          // 123.456
```

Принимаемые форматы
-------------------

[](#принимаемые-форматы)

- `float` — нативное число с плавающей точкой (только конечные, без INF/NAN)
- `int` — нативное целое число
- `bool` — булево значение (приводится к 0.0 или 1.0)
- `string` — числовая строка ('3.14', '-0.5', '1.5e10')

Контракт
--------

[](#контракт)

`provide: tessera-contract-type/float`

Лицензия
--------

[](#лицензия)

MIT

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance56

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e78f325d4580bbfe722ff05052308109007ad43dc95ff8c07de870d843b54adc?d=identicon)[targrik](/maintainers/targrik)

---

Top Contributors

[![targrik](https://avatars.githubusercontent.com/u/6997825?v=4)](https://github.com/targrik "targrik (2 commits)")

### Embed Badge

![Health badge](/badges/tessera-php-tessera-type-float/health.svg)

```
[![Health](https://phpackages.com/badges/tessera-php-tessera-type-float/health.svg)](https://phpackages.com/packages/tessera-php-tessera-type-float)
```

###  Alternatives

[flagstudio/nova-actions-left

Laravel Nova actions on the left

2258.2k](/packages/flagstudio-nova-actions-left)[humanmade/popup

An exit intent popup block that shows when someone may be about to leave the site

144.8k](/packages/humanmade-popup)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
