Skip to content

Wrap the classes in the according namespace #19

Description

@floriandammeyer

I found the ZipStream class very helpful in one of my current projects. Unfortunately the class resides in the global namespace in the original code, which didn't really go well with the folder structure and module system of the Zend Framework, so I had to wrap it in a namespace for the PHPZip "module". In my project the class is now accessible as \PHPZip\ZipStream.
I recommend you to adopt this to the original source code to make it PSR-0 compliant (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md). Using your small "library" in bigger frameworks would become much easier and your project would fit to currently modern naming conventions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions