Download the PHP package sandromiguel/php-streams without Composer
On this page you can find all versions of the php package sandromiguel/php-streams. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sandromiguel/php-streams
More information about sandromiguel/php-streams
Files in sandromiguel/php-streams
Package php-streams
Short Description A PHP library for stream handling following PSR-7 standards.
License MIT
Homepage https://github.com/SandroMiguel/php-sceleto
Informations about the package php-streams
PhpStreams
PhpStreams is a PHP library that provides stream handling following the PSR-7 standards.
Features
- Stream Manipulation: Read from and write to streams with ease.
- PSR-7 Compatibility: Conforms to the PSR-7 standards for interoperability.
- Flexible: Offers a comprehensive set of features for stream manipulation.
Installation
You can install PhpStreams via Composer:
Usage
Try it on replit.com
Try out the interactive examples on the replit.com platform:
Text Stream in Memory
Output example
Reading from a File
Output example (if example.txt contains "Hello, my name is example.txt"):
Writing to a File
Output example (if writing is successful):
Reading a Specific Number of Bytes from a File
Output example
Getting Stream Metadata
Output example
Contributing
Want to contribute? All contributions are welcome. Read the contributing guide.
Questions
If you have questions tweet me at @sandro_m_m or open an issue.
License
This project is licensed under the MIT License - see the LICENSE file for details
~ sharing is caring ~