|
9 | 9 | - *Extract* phar archives |
10 | 10 | - *Add, rename, delete, list* files inside phar archives |
11 | 11 | - *Get informations* about phar archives (such as filesize, metadata, stub, etc...) |
12 | | -- *Converts* zip or tar archives to phar archives and vice versa |
| 12 | +- *Converts* zip or tar archives to phar archives |
| 13 | +- *Converts* phar archives to zip or tar archives |
13 | 14 | - *Supports* GZip and BZip2 compression types (BZip2 needs the php_bz2 extension which is already included on the Windows installer) |
14 | 15 |
|
15 | 16 | ***Don't run this script directly. Run it from a cmd.exe or from a Linux Terminal instance instead*** |
@@ -42,55 +43,55 @@ If you are running PharTools on Windows you can simply run it calling *phartools |
42 | 43 |
|
43 | 44 | #### Add a file to a phar archive: |
44 | 45 |
|
45 | | -*phartools -a <phar_archive> <file>* |
| 46 | +*phartools -a <phar_archive> <file>* |
46 | 47 |
|
47 | 48 | *file* can be either a file or a non-empty directory. |
48 | 49 |
|
49 | 50 | #### Create a phar archive: |
50 | 51 |
|
51 | | -*phartools -c <destination_phar> <source_dir | source_file> [options]* |
| 52 | +*phartools -c <destination_phar> <source_dir | source_file> [options]* |
52 | 53 |
|
53 | 54 | *options* switches: |
54 | 55 |
|
55 | 56 | -zgzip|-zbzip2 Compress the phar file using gzip or bzip2 compression |
56 | | --m<metadata> Add metadata to the phar file (metadata format must be like 'key=>value,key2=>value2') |
57 | | --s<stub> Set stub string for the phar |
58 | | --r<regex> Include only files matching the regular expression |
| 57 | +-m<metadata> Add metadata to the phar file (metadata format must be like 'key=>value,key2=>value2') |
| 58 | +-s<stub> Set stub string for the phar |
| 59 | +-r<regex> Include only files matching the regular expression |
59 | 60 |
|
60 | 61 | #### Delete a file from a phar archive: |
61 | 62 |
|
62 | | -*phartools -d <phar_archive> <file>* |
| 63 | +*phartools -d <phar_archive> <file>* |
63 | 64 |
|
64 | 65 | *file* can be either a file or a directory. |
65 | 66 |
|
66 | 67 | #### Extract a phar archive: |
67 | 68 |
|
68 | | -*phartools -e <phar_archive> [extract_path]* |
| 69 | +*phartools -e <phar_archive> [extract_path]* |
69 | 70 |
|
70 | 71 | If *extract_path* is not specified, the archive will be extracted in the current directory |
71 | 72 |
|
72 | 73 | #### Get informations of a phar archive: |
73 | 74 |
|
74 | | -*phartools -i <phar_archive>* |
| 75 | +*phartools -i <phar_archive>* |
75 | 76 |
|
76 | 77 | #### List files inside a phar archive: |
77 | 78 |
|
78 | | -*phartools -l <phar_archive>* |
| 79 | +*phartools -l <phar_archive>* |
79 | 80 |
|
80 | 81 | #### Rename a file into a phar archive: |
81 | 82 |
|
82 | | -*phartools -r <phar_archive> <oldname> <newname>* |
| 83 | +*phartools -r <phar_archive> <oldname> <newname>* |
83 | 84 |
|
84 | 85 | #### Convert zip or tar archive to a phar archive: |
85 | 86 |
|
86 | | -*phartools -a2p <archive> [compression]* |
| 87 | +*phartools -a2p <archive> [compression]* |
87 | 88 |
|
88 | 89 | Currently supported *compression* types are gzip and bzip2 |
89 | 90 |
|
90 | 91 |
|
91 | 92 | #### Convert a phar archive to a zip or tar archive: |
92 | 93 |
|
93 | | -*phartools -p2a <phar_archive> [options]* |
| 94 | +*phartools -p2a <phar_archive> [options]* |
94 | 95 |
|
95 | 96 | *options* switches: |
96 | 97 | -zgzip|-zbzip2 Set output compression type |
|
0 commit comments