PHPackages                             curder/php-package-demo - 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. curder/php-package-demo

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

curder/php-package-demo
=======================

A wonderful package to perform unit conversion in PHP

1.3.1(5y ago)0234MITPHPPHP ^7.3|^8.0

Since Mar 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/curder/php-package-demo)[ Packagist](https://packagist.org/packages/curder/php-package-demo)[ Docs](https://github.com/curder/php-package-demo)[ RSS](/packages/curder-php-package-demo/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

A wonderful package to perform unit conversion in PHP
=====================================================

[](#a-wonderful-package-to-perform-unit-conversion-in-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7f9be8ca8b9152cb9416e7bc2ff1a1a4e082ffacae14ff009599e5d31958049a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6375726465722f7068702d7061636b6167652d64656d6f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/curder/php-package-demo)[![GitHub Tests Action Status](https://camo.githubusercontent.com/d869f23fe368abd20399c18891fa48fbc387a8d28760541f3fd0c06452cf581f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6375726465722f7068702d7061636b6167652d64656d6f2f54657374733f6c6162656c3d7465737473)](https://github.com/curder/php-package-demo/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/d0afac2bc12bd3787ca9d8bfccb135f87c56ec0ac889d32696aa3e654991f59c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6375726465722f7068702d7061636b6167652d64656d6f2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/curder/php-package-demo/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/2742094331144969aa7ba8aa1388b7311372749d334dfb3e9aa954e7460e5820/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6375726465722f7068702d7061636b6167652d64656d6f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/curder/php-package-demo)

This is a php package is a demo for study.

- [Kilograms to Pounds (kg to lbs)](https://www.metric-conversions.org/weight/kilograms-to-pounds.htm)
- [Pounds to Kilograms (lbs to kg)](https://www.metric-conversions.org/weight/pounds-to-kilograms.htm)
- [Celsius to Fahrenheit (°C to °F)](https://www.metric-conversions.org/temperature/celsius-to-fahrenheit.htm)
- [Celsius to Kelvin](https://www.metric-conversions.org/temperature/celsius-to-kelvin.htm)

This is a php package, and it is a demo for study.

- laravel命令行测试 [curder/laravel-console-command-test-demo](https://github.com/curder/laravel-console-command-test-demo)
- laravel 拓展包 [curder/laravel-package-demo](https://github.com/curder/laravel-package-demo)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require curder/php-package-demo
```

Usage
-----

[](#usage)

```
use Curder\PhpPackageDemo\Weight;
use Curder\PhpPackageDemo\Temperature;

Weight::fromKilograms(100)->toLabs(); // 220.4623;
Weight::fromLabs(100)->toKilograms(); // 45.35923

Temperature::fromCelsius(100)->toFahrenheit(); // 212;
Temperature::fromCelsius(100)->toKelvin(); // 373.15;
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Curder](https://github.com/curder)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

1896d ago

### Community

Maintainers

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

---

Top Contributors

[![curder](https://avatars.githubusercontent.com/u/8327004?v=4)](https://github.com/curder "curder (25 commits)")

---

Tags

packagephpcurderphp-package-demo

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/curder-php-package-demo/health.svg)

```
[![Health](https://phpackages.com/badges/curder-php-package-demo/health.svg)](https://phpackages.com/packages/curder-php-package-demo)
```

###  Alternatives

[austinhyde/iniparser

A Zend\_Config\_Ini like parser for .ini files.

6845.5k1](/packages/austinhyde-iniparser)

PHPackages © 2026

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