PHP Classes

PHP Base64 Encode and Decode: Encode and decode data in base64 in pure PHP

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 674 All time: 4,801 This week: 206Up
Version License PHP version Categories
base64 1.6Freeware5PHP 5, Text processing
Description 

Author

This class can encode and decode data in base64 in pure PHP.

It can take a data string and encode it using the base64 algorithm.

The class can also do the opposite, i.e. decode base64 encoded data and return the original data string.

Picture of Haseeb Ahmad Basil
  Performance   Level  
Name: Haseeb Ahmad Basil is available for providing paid consulting. Contact Haseeb Ahmad Basil .
Classes: 11 packages by
Country: United States United States
Age: 26
All time rank: 60981 in United States United States
Week rank: 22 Up4 in United States United States Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Recommendations

What is the best PHP encrypt decrypt classes class?
Secure Encryption and Decryption of classes

Example

<?php
include 'base64.php';

$bs64 = new Base64;
var_dump($bs64->decode("dGVzdA=="));
var_dump($bs64->encode("test"));

?>


  Files folder image Files (3)  
File Role Description
Plain text file base64.php Class main class
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file example.php Example Example File

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:674
This week:0
All time:4,801
This week:206Up
User Ratings User Comments (6)
 All time
Utility:84%StarStarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:-
Examples:93%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1263
 
Never knew this was possible.
7 years ago (Rafiki)
70%StarStarStarStar
Wow.
8 years ago (James Hang)
70%StarStarStarStar
Useful Class written by some efficient programmer
8 years ago (Bilal Bajwa)
70%StarStarStarStar
I just ran it on my localhost, Never thought it was possible ...
8 years ago (Mega sploder)
70%StarStarStarStar
Why not http://php.
8 years ago (per)
0%Star
Good for learning about mechanisms
8 years ago (Subin Siby)
60%StarStarStarStar