PHPackages                             recycledbeans/is-base64 - 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. recycledbeans/is-base64

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

recycledbeans/is-base64
=======================

Adds a quick and easy method for determining whether a string is base64-encoded.

v1.0.6(6y ago)436.6k↑25.7%MITPHP

Since Jun 13Pushed 6y agoCompare

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

READMEChangelog (1)DependenciesVersions (5)Used By (0)

PHP is\_base64
==============

[](#php-is_base64)

From time to time, I've found it necessary to validate whether a bit of text is already encoded in base64. Since PHP does not include an easy function to do this, I decided to write this. This package does one simple thing: *it adds some nice helper functions to know whether a text string is base64-encoded or not*.

### Installation

[](#installation)

You can easily install with composer:

`composer require recycledbeans/is-base64`

### Usage

[](#usage)

#### is\_base64()

[](#is_base64)

```
