Skip to content

Commit 9e4a6de

Browse files
author
Flavius12
committed
Update README.md
1 parent b4b08b1 commit 9e4a6de

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
- *Extract* phar archives
1010
- *Add, rename, delete, list* files inside phar archives
1111
- *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
1314
- *Supports* GZip and BZip2 compression types (BZip2 needs the php_bz2 extension which is already included on the Windows installer)
1415

1516
***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
4243

4344
#### Add a file to a phar archive:
4445

45-
*phartools -a <phar_archive> <file>*
46+
*phartools -a &lt;phar_archive&gt; &lt;file&gt;*
4647

4748
*file* can be either a file or a non-empty directory.
4849

4950
#### Create a phar archive:
5051

51-
*phartools -c <destination_phar> <source_dir | source_file> [options]*
52+
*phartools -c &lt;destination_phar&gt; &lt;source_dir | source_file&gt; [options]*
5253

5354
*options* switches:
5455

5556
-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&lt;metadata&gt; Add metadata to the phar file (metadata format must be like 'key=&gt;value,key2=&gt;value2')
58+
-s&lt;stub&gt; Set stub string for the phar
59+
-r&lt;regex&gt; Include only files matching the regular expression
5960

6061
#### Delete a file from a phar archive:
6162

62-
*phartools -d <phar_archive> <file>*
63+
*phartools -d &lt;phar_archive&gt; &lt;file&gt;*
6364

6465
*file* can be either a file or a directory.
6566

6667
#### Extract a phar archive:
6768

68-
*phartools -e <phar_archive> [extract_path]*
69+
*phartools -e &lt;phar_archive&gt; [extract_path]*
6970

7071
If *extract_path* is not specified, the archive will be extracted in the current directory
7172

7273
#### Get informations of a phar archive:
7374

74-
*phartools -i <phar_archive>*
75+
*phartools -i &lt;phar_archive&gt;*
7576

7677
#### List files inside a phar archive:
7778

78-
*phartools -l <phar_archive>*
79+
*phartools -l &lt;phar_archive&gt;*
7980

8081
#### Rename a file into a phar archive:
8182

82-
*phartools -r <phar_archive> <oldname> <newname>*
83+
*phartools -r &lt;phar_archive&gt; &lt;oldname&gt; &lt;newname&gt;*
8384

8485
#### Convert zip or tar archive to a phar archive:
8586

86-
*phartools -a2p <archive> [compression]*
87+
*phartools -a2p &lt;archive&gt; [compression]*
8788

8889
Currently supported *compression* types are gzip and bzip2
8990

9091

9192
#### Convert a phar archive to a zip or tar archive:
9293

93-
*phartools -p2a <phar_archive> [options]*
94+
*phartools -p2a &lt;phar_archive&gt; [options]*
9495

9596
*options* switches:
9697
-zgzip|-zbzip2 Set output compression type

0 commit comments

Comments
 (0)