File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11[ ![ StyleCI] ( https://styleci.io/repos/119397036/shield )] ( https://styleci.io/repos/119397036 )
2+ [ ![ Build Status] ( https://travis-ci.org/descom-es/php-file-encoding.svg?branch=1.0 )] ( https://travis-ci.org/descom-es/php-file-encoding )
23# PHP convert files encoding
34PHP class to convert files encoding
45
56## Usage
67``` php
7- EncodeFile($fileR , $encoding_to, $encodings_detected);
8+ Encoding($file , $encoding_to, $encodings_detected);
89```
910
1011This is an example:
1112
1213``` php
13- $codification = new Codification();
1414
15- $fileR = 'file.txt';
15+ use Descom\File\Encoding
16+ $codification = new Encoding();
17+
18+ $file = 'file.txt';
1619$encoding_to = 'UTF-8';
1720$encodings_detected = 'UTF-8,ISO-8859-1,WINDOWS-1252';
1821
19- $result = $codification->EncodeFile($fileR , $encoding_to, $encodings_detected);
22+ $result = $codification->encodeFile($file , $encoding_to, $encodings_detected);
2023```
2124
2225## Encoding values
You can’t perform that action at this time.
0 commit comments