Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.25 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.25 KB

PHP I/O Streams (v2)

Build Status

This PHP extension is a work in progress set of interfaces and implementation of object-based (rather than resource- based) I/O Streams. The API is intended to fix all things.

Installation

We're not available on PECL just yet, so for now you'll need to manually install. This assumes you have a basic PHP build environment set up - if not read up here.

Once you have your build environment set up, you can clone the repository:

$ git clone git@github.com:phplang/streams2.git

Then run phpize to generate the configure script for your PHP environment:

$ phpize

Then configure the build:

$ ./configure --enable-streams2

And finally, you can make and make install (you might need sudo to install!):

$ make
$ make install

You can also run the tests in your environment to veriy everything is working:

$ make test

Wiki

Primarily the discussion around this started on the wiki, where the intended use case and interfaces are listed. Feedback is welcome!