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

[cerdic/css-tidy

CSSTidy is a CSS minifier

2092.0M6](/packages/cerdic-css-tidy)[lochmueller/calendarize

Create a structure for timely controlled tables (e.g. events) and one plugin for the different output of calendar views (list, detail, month, year, day, week...). The extension is shipped with one default event table, but you can also 'calendarize' your own table/model. It is completely independent and configurable! Use your own models as event items in this calender. Development on https://github.com/lochmueller/calendarize

77152.6k12](/packages/lochmueller-calendarize)[sitegeist/kaleidoscope

Responsive-images for Neos

29352.4k10](/packages/sitegeist-kaleidoscope)[jurchiks/numbers2words

It spells numbers (and currencies)!

20172.1k3](/packages/jurchiks-numbers2words)[giauphan/laravel-qr-code

QR Code Generator for PHP wrapper for Laravel

2765.4k1](/packages/giauphan-laravel-qr-code)[syholloway/mrcolor

Color manipulation tools and format conversion for PHP

14149.6k](/packages/syholloway-mrcolor)

PHPackages © 2026

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