PHPackages                             deha-soft/jp-string-helper - 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. deha-soft/jp-string-helper

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

deha-soft/jp-string-helper
==========================

String helper for japanese

v0.0.1(4y ago)531.3k↓33.3%3MITPHP

Since Feb 14Pushed 4y ago3 watchersCompare

[ Source](https://github.com/deha-soft/jp-string-helper)[ Packagist](https://packagist.org/packages/deha-soft/jp-string-helper)[ RSS](/packages/deha-soft-jp-string-helper/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

Japanese String Helpers
=======================

[](#japanese-string-helpers)

PHP Japanese string helper functions for converting Japanese strings from full-width to half-width and reverse.
Laravel Rule for validation Japanese string only full-width or only half-width.

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

[](#installation)

1. You can install the package via composer:

```
composer require deha-soft/jp-string-helper
```

2. Optional: The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

```
'providers' => [
    // ...
    DehaSoft\JpStringHelper\JpStrRulesServiceProvider::class,
];
```

Usage
-----

[](#usage)

Example use of the `toHalfSize`, `toFullSize` helper.

```
# using Transform import
use DehaSoft\JpStringHelper\Transform;

$fullSizeStr = "１２３４５ザヂプａｂｃｄ";
$output = Transform::toHalfSize($fullSizeStr);
echo $output;
>>> 12345ｻﾞﾁﾞﾌﾟabcd

$halfSizeStr = "12345ｻﾞﾁﾞﾌﾟabcd";
$output = Transform::toFullSize($halfSizeStr);
echo $output;
>>> １２３４５ザヂプａｂｃｄ
```

Example use of the Rule for Laravel validation.

```
# using Rule class import
use DehaSoft\JpStringHelper\Rules\FullSize;
use DehaSoft\JpStringHelper\Rules\HalfSize;

public function rules()
{
    return [
        'name' => [new FullSize()],
        'description' => [new HalfSize()],
    ];
}
```

```
# or using rule alias

public function rules()
{
    return [
        'name' => ['full_size'],
        'description' => ['half_size'],
    ];
}
```

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

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

2

Last Release

1528d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22d2d9ff80ef127d937b81144dcf56df524f3f1e1c75f3ac2c4b7478ee8a626f?d=identicon)[deha-soft-developer](/maintainers/deha-soft-developer)

---

Top Contributors

[![bango97](https://avatars.githubusercontent.com/u/35036143?v=4)](https://github.com/bango97 "bango97 (7 commits)")

---

Tags

dehafullsizehalfsizejapaneselaravelphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deha-soft-jp-string-helper/health.svg)

```
[![Health](https://phpackages.com/badges/deha-soft-jp-string-helper/health.svg)](https://phpackages.com/packages/deha-soft-jp-string-helper)
```

PHPackages © 2026

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