File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
[ ![ 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 )
2
3
# PHP convert files encoding
3
4
PHP class to convert files encoding
4
5
5
6
## Usage
6
7
``` php
7
- EncodeFile($fileR , $encoding_to, $encodings_detected);
8
+ Encoding($file , $encoding_to, $encodings_detected);
8
9
```
9
10
10
11
This is an example:
11
12
12
13
``` php
13
- $codification = new Codification();
14
14
15
- $fileR = 'file.txt';
15
+ use Descom\File\Encoding
16
+ $codification = new Encoding();
17
+
18
+ $file = 'file.txt';
16
19
$encoding_to = 'UTF-8';
17
20
$encodings_detected = 'UTF-8,ISO-8859-1,WINDOWS-1252';
18
21
19
- $result = $codification->EncodeFile($fileR , $encoding_to, $encodings_detected);
22
+ $result = $codification->encodeFile($file , $encoding_to, $encodings_detected);
20
23
```
21
24
22
25
## Encoding values
You can’t perform that action at this time.
0 commit comments