Skip to content

LawnGnome/php-gopher

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
php-gopher 0.1
http://github.com/LawnGnome/php-gopher


I. WHAT IS THIS?

It's a stream wrapper implementing Gopher support in PHP.


II. UH, WHY?

Why not? I like Gopher.


III. NO, SERIOUSLY, WHY?

Well, I wrote a Gopher interface for Wordpress a while back and thought it'd be
nice if I could interact with it.


IV. OH, THAT MAKES COMPLETE... WAIT, A GOPHER INTERFACE TO WORDPRESS?!

Yep! You can get it at http://github.com/LawnGnome/wp-gopher.


V. OK THEN. WHAT DOES THIS REQUIRE?

PHP 5.3, since I've stopped caring about versions of PHP where I can't use
anonymous functions.


VI. HOW DO I USE IT?

There's a demo file called demo.php, but the short version is: include
GopherStream.php and open something with a Gopher URL. There's even opendir()
support, although it's kind of useless.

There's also quite a bit of inline documentation. You can run phpDocumentor
over GopherStream.php to extract it, if you like, although you probably don't
need to.


VII. SHOULDN'T THERE BE TESTS OR SOMETHING?

Probably, but I didn't feel like writing a mock Gopher server.


VIII. I HAVE A BUG REPORT/FEATURE SUGGESTION/SOME CRACK, SINCE YOU'RE CLEARLY
      ON DRUGS ANYWAY.

Lodge a report on GitHub and it will be dealt with appropriately.

About

A gopher stream wrapper for PHP 5.3+. I'm sure this'll be useful.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages