PHPackages                             jorgeslima/base64-validation - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. jorgeslima/base64-validation

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

jorgeslima/base64-validation
============================

Laravel validators for base64 encoded files

1.0.8(5y ago)0430MITPHPPHP ^7.1 || ^8.0

Since May 15Pushed 5y agoCompare

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

READMEChangelogDependencies (1)Versions (10)Used By (0)

Laravel validators for base64 encoded files, includes versions of laravel files validation for base64 encoded files.

Requirements
------------

[](#requirements)

- PHP: 7.1+ || PHP 8
- Laravel: 5.5+/6+/7+/8+

Install
-------

[](#install)

- Install composer package to your laravel project

```
$ composer require jorgeslima/base64-validation
```

Using
-----

[](#using)

Use base64 validation rules as usual Laravel validation rules. Base64 rules variants supports all parameters from their original Laravel rules.

```
public function rules(): array
{
   return [
       'attachment' => 'sometimes|base64dimensions:min_width=100,min_height=200',
   ];
}
```

Available rules
---------------

[](#available-rules)

base64 ruleanalog of Laravel rulebase64maxmax (for file)base64minmin (for file)base64dimensionsdimensions (for image)base64filefilebase64imageimagebase64mimetypesmimetypesbase64mimesmimesbase64betweenbetween (for file)base64sizesize (for file)Localization
------------

[](#localization)

By default each base64 rule uses validation error message from its non base64 file rule equivalent, for example localization from 'validation.min.file' is used for base64min message. If you would like to have your own localization for base64 rules you can easy change default behaviour by publishing config

```
php artisan vendor:publish --provider="Jorgeslima\Base64Validation\Providers\ServiceProvider" --tag=config
```

and setting up `replace_validation_messages` option to `false` on config/base64validation.php file, and add localizations for rules in standard Laravel way.

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~124 days

Recently: every ~129 days

Total

9

Last Release

1928d ago

PHP version history (2 changes)1.0PHP ^7.1

1.0.7PHP ^7.1 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![crazybooot](https://avatars.githubusercontent.com/u/4480913?v=4)](https://github.com/crazybooot "crazybooot (12 commits)")[![jorgeslima](https://avatars.githubusercontent.com/u/8495352?v=4)](https://github.com/jorgeslima "jorgeslima (3 commits)")[![innoflash](https://avatars.githubusercontent.com/u/12772919?v=4)](https://github.com/innoflash "innoflash (1 commits)")[![miraries](https://avatars.githubusercontent.com/u/4648498?v=4)](https://github.com/miraries "miraries (1 commits)")[![neoighodaro](https://avatars.githubusercontent.com/u/807318?v=4)](https://github.com/neoighodaro "neoighodaro (1 commits)")

---

Tags

laravelvalidationbase64filesimagesdownloadencoded

### Embed Badge

![Health badge](/badges/jorgeslima-base64-validation/health.svg)

```
[![Health](https://phpackages.com/badges/jorgeslima-base64-validation/health.svg)](https://phpackages.com/packages/jorgeslima-base64-validation)
```

###  Alternatives

[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[carsdotcom/laravel-json-schema

Json Schema validation for Laravel projects

1036.7k3](/packages/carsdotcom-laravel-json-schema)

PHPackages © 2026

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