2

How can I get the official source code for the PHP ZipArchive class?

zcoop98
  • 2,590
  • 1
  • 18
  • 31
Jagan
  • 4,649
  • 19
  • 60
  • 70
  • 3
    Voting to reopen on the grounds that the question [seeks the canonical resource](https://meta.stackoverflow.com/q/385479/584676). – codewario Apr 29 '22 at 16:26
  • 3
    Since this is on the cusp of being closed *again*, a reminder to [review the usage of the Seeking Recommendations close reason](https://meta.stackoverflow.com/a/417480/584676); seeking the official/canonical resource is not a valid reason to use this close reason. The same question linked in my previous comment also backs up the FAQ post in this comment. – codewario Apr 30 '22 at 08:52

1 Answers1

6

Assuming you're talking about the PHP ZipArchive class: download the PHP source code and look for the appropriate file. You may be disappointed if you expect the source code to be PHP code because the source code is written in C Language.

Alternatively, PHP source code can also be found on PHP Github Development Repository.

You can also take a look at the Examples folder for usage.

codeonion
  • 264
  • 3
  • 16
deceze
  • 510,633
  • 85
  • 743
  • 889