| Recommend this page to a friend! |
| Info | Reputation | Support forum | Blog | Links |
| Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
| 2025-05-08 (-4 hours ago) | Total: 317 | All time: 7,253 This week: 455 | ||||||
| Version | License | PHP version | Categories | |||
| php-encoder 0.1.10 | GNU General Publi... | 5.3 | Email, PHP 5, Text processing |
| Description | Author | ||||||||
This class can encode and decode email with quoted-printable. |
|
Encoder is a class that allows encoding/decoding from/to: - Base64 - Quoted Printable - 7bit (Future Feature) - 8bit (Future Feature) - Binary
Include and instantiate:
require 'path\to\Encoder.php';
$encoder = new Encoder;
Convert text to base64:
$encoder->encode('Hëllo World!', $encoder::BASE_64); // returns 'SOtsbG8gV29ybGQh'
Convert text to quoted-printable:
$encoder->encode('Hëllo World!', $encoder::QUOTED_PRINTABLE); // returns 'H=EBllo World!'
Decode quoted-printable text:
$encoder->decode('=E1=E9=ED=F3=FA', $encoder::QUOTED_PRINTABLE); // returns 'áéÃóú'
Below is a list of the public methods available for use.
$encoder->
encode($input, $scheme, $length = 75) // Encode text to encoding scheme.
decode($input, $scheme) // Decode text from encoded text.
This project keeps all tests stored in the /tests folder
and uses the PHPUnit
testing framework.
(GNU General Public License, version 2)
Copyright © 2013, Nathan Bishop
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see GNU General Public License, version 2.
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.