Skip to content

Commit 57fbbaa

Browse files
committed
ru -> en
1 parent 526f4b3 commit 57fbbaa

1 file changed

Lines changed: 23 additions & 19 deletions

File tree

README.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
1-
# Работа с 7z архивами с помощью командной строки.
1+
# A wrapper over 7-zip (p7zip)
22

33
[![Build Status](https://secure.travis-ci.org/Gemorroj/Archive7z.png?branch=master)](https://travis-ci.org/Gemorroj/Archive7z)
44

55

6-
### Функции:
6+
### Features:
77

8-
- распаковка всего архива;
9-
- распаковка любой директории или файла в архиве;
10-
- просмотр всех файлов и директорий находящихся в архиве;
11-
- получение содержимого файла в архиве;
12-
- удаление директории или файла из архива;
13-
- добавление файлов в архив;
14-
- проверка корректности архива;
8+
- Extract archive;
9+
- Extract any directory or file;
10+
- List files or directories;
11+
- Get contents of any file in archive;
12+
- Delete files or directories;
13+
- Add files or directories;
1514

1615

17-
### Требования:
16+
### Requirements:
1817

1918
- PHP >= 5.3
2019
- shell
2120
- **7-zip >= 7.30 (p7zip >= 9.38)**
2221

2322

24-
### Примечания:
23+
### Notes:
2524

26-
- Список файлов/директорий отображается всегда в кодировке UTF-8
27-
- При указании файлов/директорий для распаковки, их имена нужно указывать в кидировке текущей файловой системы
28-
- При распаковке архива, имена файлов/директорий запишутся в кодировке текущей файловой системы
25+
- List of files/directories is always displayed in UTF-8
26+
- When unpacking, the names of the files/directories you need to specify the encoding of the current file system
27+
- When you unpack the archive, the file names/directories are written in the encoding of the current file system
2928

3029

31-
### Установка через composer:
30+
### Installation:
3231

33-
- Добавьте проект в ваш файл composer.json:
32+
- add to composer.json:
3433

3534
```json
3635
{
@@ -39,21 +38,26 @@
3938
}
4039
}
4140
```
42-
- Установите проект:
41+
- install:
4342

4443
```bash
4544
$ php composer.phar update gemorroj/archive7z
4645
```
4746

4847

49-
### Пример работы:
48+
### Example:
5049

5150
```php
5251
<?php
5352
use Archive7z\Archive7z;
5453

5554
$obj = new Archive7z('path_to_7z_file.7z');
5655

56+
if (!$obj->isValid()) {
57+
throw new Exception('Incorrect archive');
58+
}
59+
60+
5761
foreach ($obj->getEntries() as $entry) {
5862
print_r($entry);
5963
/*
@@ -92,7 +96,7 @@ Archive7z\Entry Object
9296
}
9397
}
9498

95-
echo $obj->getContent('test/test.txt');
99+
echo $obj->getContent('test/test.txt'); // show content of the file
96100

97101
$obj->setOutputDirectory('path_to_extract_folder/');
98102
$obj->extract(); // extract archive

0 commit comments

Comments
 (0)