PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (7)   Blog (1)    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 674 This week: 1All time: 4,796 This week: 560Up
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: Pakistan Pakistan
Age: 26
All time rank: 6147 in Pakistan Pakistan
Week rank: 34 Up1 in Pakistan Pakistan 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  
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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:674
This week:1
All time:4,796
This week:560Up
User Ratings User Comments (6)
 All time
Utility:84%StarStarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:-
Examples:93%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1254
 
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