PHPackages                             daycode/charable - 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. daycode/charable

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

daycode/charable
================

Get expected return value from char such as Alphabetic, Alphanumeric, Digit, Upper and Lower Case

v1.0.1(2y ago)26MITPHP

Since Jul 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dayCod/laravel-charable)[ Packagist](https://packagist.org/packages/daycode/charable)[ RSS](/packages/daycode-charable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Charable Laravel Facade
=======================

[](#charable-laravel-facade)

Get expected return value from char such as Alphabetic, Alphanumeric, Digit, Upper and Lower Case.

Installation Guide
------------------

[](#installation-guide)

```
composer require daycode/charable
```

Update to the newest laravel project vendor

```
composer update
```

Go to config/app.php, then put these code on service providers

```
'providers' => [
    /*
    * Package Service Providers...
    */
    DayCod\Charable\CharableServiceProvider::class,
],
```

Put this code also on the class aliases

```
'aliases' => [
    /*
    * Class Aliases
    */
    'Charable'=> DayCod\Charable\Charable::class,
],
```

Last, for make sure this package installed correctly.

```
composer dump-autoload && php artisan optimize:clear
```

Usage Guide
-----------

[](#usage-guide)

### Get Only Alphabet

[](#get-only-alphabet)

```
Charable::getOnlyAlphabet(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: abcdef
```

### Get Only Number or Digit

[](#get-only-number-or-digit)

```
Charable::getOnlyNumberOrDigit(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: 1230
```

### Get Only Lower Alphabet

[](#get-only-lower-alphabet)

```
Charable::getOnlyLowerAlphabet(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: abcdef
```

### Get Only Upper Alphabet

[](#get-only-upper-alphabet)

```
Charable::getOnlyUpperAlphabet(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: ""
```

### Get Only Alphabet Numeric

[](#get-only-alphabet-numeric)

```
Charable::getOnlyAlphabetNumeric(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: 123abcdef0
```

Credits
-------

[](#credits)

- [Wirandra Alaya](https://github.com/dayCod)
- [See all Contributor](https://github.com/dayCod/laravel-charable/contributors)

Tested on
---------

[](#tested-on)

ReleaseSupported VersionsLaravel Charable 1.0.0Laravel 8/9/10

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

1037d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c9b63aa615f56ae0b98424918945545acc6a6e4b8252269551214784ef967e0?d=identicon)[dayCod](/maintainers/dayCod)

---

Top Contributors

[![dayCod](https://avatars.githubusercontent.com/u/78329755?v=4)](https://github.com/dayCod "dayCod (12 commits)")

---

Tags

laravellaravel-packagephp

### Embed Badge

![Health badge](/badges/daycode-charable/health.svg)

```
[![Health](https://phpackages.com/badges/daycode-charable/health.svg)](https://phpackages.com/packages/daycode-charable)
```

###  Alternatives

[artisaninweb/laravel-enum

A provider for Enums in Laravel.

1187.5k](/packages/artisaninweb-laravel-enum)

PHPackages © 2026

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