Registering a stream wrapper
A stream wrapper provides a handler for one or more specific schemes.
The example below shows a simple stream wrapper that sends PATCH HTTP requests when the stream is closed.
This example only shows some examples of what a generic stream wrapper would contain. These are not all methods available. A full list of methods that can be implemented can be found at http://php.net/streamWrapper.