PHPackages                             ay4t/php-helpers - 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. ay4t/php-helpers

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

ay4t/php-helpers
================

Fungsi helper untuk PHP

2.0.2(9mo ago)213[1 issues](https://github.com/ay4t/php-helpers/issues)MITPHP

Since Feb 16Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/ay4t/php-helpers)[ Packagist](https://packagist.org/packages/ay4t/php-helpers)[ RSS](/packages/ay4t-php-helpers/feed)WikiDiscussions master Synced 1mo ago

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

🚀 PHP Helpers
=============

[](#-php-helpers)

Kumpulan helper PHP untuk mempermudah development aplikasi Anda.

📦 Instalasi
-----------

[](#-instalasi)

```
composer require ay4t/php-helpers
```

🎯 Fitur Utama
-------------

[](#-fitur-utama)

### 📊 Formatters

[](#-formatters)

- 📱 **Phone Formatter**: Format nomor telepon dengan berbagai standar
- 💰 **Currency Formatter**: Format mata uang dengan berbagai opsi
- 📅 **DateTime Formatter**: Format tanggal dan waktu
- 🔄 **Array Helper**: Manipulasi array dengan mudah dan ekspresif

### 🛠️ String &amp; File

[](#️-string--file)

- 📝 **String Helper**: Manipulasi string dengan berbagai method
- 📂 **File Helper**: Operasi file dan direktori yang aman

### 🔒 Security &amp; Validation

[](#-security--validation)

- 🔐 **Security Helper**: Hashing password, enkripsi data, dan pembuatan token
- ✅ **Validation Helper**: Validasi data dengan berbagai aturan

### 🌐 Web

[](#-web)

- 🔗 **URL Helper**: Parsing dan manipulasi URL
- 📄 **HTML Helper**: Pembuatan elemen HTML dan form builder yang aman

🛠️ Penggunaan Dasar
-------------------

[](#️-penggunaan-dasar)

```
use Ay4t\Helper\HP;

// Phone: format internasional
$phone = HP::Phone('081234567890', 'ID')->getResult();            // "+62 812-3456-7890"

// Phone: hanya integer (MSISDN)
$msisdn = HP::Phone('081234567890', 'ID')->onlyInteger(true)->getResult(); // "6281234567890"

// Currency: format mata uang
$amount = HP::Currency(1000000, 'IDR', 2)->getResult();

// Currency: terbilang (spell-out)
$terbilang = HP::Currency(1000000, 'IDR', 2)->counted()->getResult();

// Datetime (Carbon wrapper)
$now = HP::Datetime()::now()->toDateTimeString();

// Array helper
$names = HP::Array($data)->where('status', 'active')->pluck('name');

// String helper
$slug = HP::String('Hello World!')->slugify();                      // "hello-world"

// URL helper
$url  = HP::URL('https://example.com?a=1')->addQueryParam('b', 2)->getResult();

// HTML helper
$aTag = HP::HTML()->link('https://example.com', 'Visit');

// Security helper
$hashed = HP::Security()->hashPassword('secret');

// Validation helper
$isEmail = HP::Validation('test@example.com')->isEmail();
```

📚 Dokumentasi
-------------

[](#-dokumentasi)

Beberapa dokumentasi tersedia:

### 📊 Formatters

[](#-formatters-1)

- [📱 Phone Formatter](docs/formatter/Phone.md)
- [💰 Currency Formatter](docs/formatter/Currency.md)
- [📅 DateTime Formatter](docs/formatter/Datetime.md)
- [🔄 Array Helper](docs/formatter/ArrayHelper.md)

### 🛠️ String &amp; File

[](#️-string--file-1)

- [📝 String Helper](docs/String/StringHelper.md)
- [📂 File Helper](docs/File/FileHelper.md)

### 🔒 Security &amp; Validation

[](#-security--validation-1)

- [🔐 Security Helper](docs/Security/SecurityHelper.md)
- [✅ Validation Helper](docs/Validation/ValidationHelper.md)
- [📦 Shipping Container Checker (ISO 6346)](docs/Validation/ShippingContainerChecker.md)

### 🌐 Web

[](#-web-1)

- [🔗 URL Helper](docs/URL/URLHelper.md)
- [📄 HTML Helper](docs/HTML/HTMLHelper.md)

🤝 Kontribusi
------------

[](#-kontribusi)

Kami sangat menghargai kontribusi Anda! Silakan buat pull request atau laporkan issue jika Anda menemukan bug atau memiliki saran perbaikan.

📝 Lisensi
---------

[](#-lisensi)

MIT License - lihat file [LICENSE](LICENSE) untuk detail lebih lanjut.

✨ Kredit
--------

[](#-kredit)

Dibuat dengan ❤️ oleh [Ayatulloh Ahad R](https://github.com/ay4t)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance48

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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 ~93 days

Total

3

Last Release

270d ago

Major Versions

1.0.0 → 2.0.12025-06-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/831d350ec997ddc3e9d8958a40ec26668688d9120b9a4be362b5f5aa822e264f?d=identicon)[ay4t](/maintainers/ay4t)

---

Top Contributors

[![ay4t](https://avatars.githubusercontent.com/u/87152520?v=4)](https://github.com/ay4t "ay4t (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ay4t-php-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/ay4t-php-helpers/health.svg)](https://phpackages.com/packages/ay4t-php-helpers)
```

###  Alternatives

[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k1.9M4](/packages/ashallendesign-short-url)[intervention/zodiac

Zodiac Sign Calculator

58191.7k](/packages/intervention-zodiac)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[solspace/craft-calendar

The most powerful event management and calendaring plugin!

1830.8k1](/packages/solspace-craft-calendar)

PHPackages © 2026

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