Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 26, 2024 via composer

clue/stream-filter v1.6.0

A simple and modern approach to stream filtering in PHP
Package summary
Share
0
issues
1
license
1
MIT
Package created
18 Oct 2015
Version published
21 Feb 2022
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
clue/stream-filter@v1.6.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of clue/stream-filter 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does clue/stream-filter do?

Clue/stream-filter is a lightweight, modern package meant to facilitate stream filtering in PHP. It taps into the powerful stream filtering options PHP offers, providing a user-friendly API for creating stream filters. Among its possibilities, unlocking on-the-fly file formatting and data transformation while enhancing developer efficiency. With its SOLID design, it is designed for ease of use and customizability, making stream filtering accessible to a wide range of developers.

How do you use clue/stream-filter?

To utilize clue/stream-filter in your PHP development, you primarily need to install it using Composer by running composer require clue/stream-filter:^1.6. You can then include the appropriate stream-filter functions within your code. For instance, to apply a filter when appending data, you would use Clue\StreamFilter\append($stream, function ($chunk) {return $chunk;}); The $stream refers to a valid stream resource and the $callback contains the functionality to be applied to each chunk of data. In a similar manner, you can prepend a filter with Clue\StreamFilter\prepend(), remove a filter using Clue\StreamFilter\remove(), or create a new filter function with Clue\StreamFilter\fun(). Remember, if ever you need to import the PHP functions associated with Clue\StreamFilter, you would use use function Clue\StreamFilter\append; allowing you to simplify function calls.

Where are the clue/stream-filter docs?

The clue/stream-filter documentation can be found in the readme file on its GitHub repository at https://github.com/clue/stream-filter.git. The readme file contains an overview of the package, detailed instructions on its usage including code examples, installation guidelines, and information on running tests. It also includes details about licensing and developer support. This document serves as the main point of reference for using the system, providing well-structured and easy-to-follow guidelines to help both novice and experienced developers make the most of this stream filtering tool in PHP.