Compare commits
6 Commits
1553d20447
..
0.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| da62588798 | |||
| f56cc5d287 | |||
| 54323d60c8 | |||
| 5f0a0c3a95 | |||
| 40e7bf7898 | |||
| 73e367349f |
@@ -1,4 +1,5 @@
|
||||
composer.lock
|
||||
composer.phar
|
||||
test.php
|
||||
/nbproject/
|
||||
/vendor/
|
||||
@@ -1,3 +1,3 @@
|
||||
# Stream
|
||||
|
||||
Potter Framework Stream Component
|
||||
Potter Framework Stream Implementation
|
||||
+5
-2
@@ -1,15 +1,18 @@
|
||||
{
|
||||
"name": "potter/stream",
|
||||
"description": "Potter Framework Stream Component",
|
||||
"description": "Potter Framework Stream Implementation",
|
||||
"type": "library",
|
||||
"require": {
|
||||
"php": "^8.5",
|
||||
"psr/http-factory": "^1.1",
|
||||
"psr/http-message": "^2.0",
|
||||
"guzzlehttp/psr7": "^2.11",
|
||||
"potter/closeable": "^0.0.1",
|
||||
"potter/detachable": "^0.0.1",
|
||||
"potter/rewindable": "^0.0.1",
|
||||
"potter/stringable": "^0.0.1",
|
||||
"potter/writeable": "^0.0.1"
|
||||
"potter/writeable": "^0.0.1",
|
||||
"potter/readable": "^0.0.1"
|
||||
},
|
||||
"license": "MIT",
|
||||
"autoload": {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Potter\Stream;
|
||||
|
||||
use \GuzzleHttp\Psr7\Stream as BaseStream;
|
||||
|
||||
abstract class AbstractStream extends BaseStream implements StreamInterface
|
||||
{ }
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Potter\Stream;
|
||||
|
||||
final class Stream extends AbstractStream
|
||||
{ }
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Potter\Stream;
|
||||
|
||||
use \Psr\Http\Message\StreamFactoryInterface as BaseStreamFactoryInterface;
|
||||
use \Psr\Http\Message\StreamInterface as BaseStreamInterface;
|
||||
|
||||
interface StreamFactoryInterface extends BaseStreamFactoryInterface
|
||||
{
|
||||
public function createStream(string $content = ''): BaseStreamInterface;
|
||||
public function createStreamFromFile(string $filename, string $mode = 'r'): BaseStreamInterface;
|
||||
public function createStreamFromResource($resource): BaseStreamInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user